C++ Brain Teasers: Exercise Your Mind 1st Edition

Видавництво: Pragmatic Bookshelf
В наявності
Кількість сторінок140
Рік видання2024
C++ is famous for getting all the default behaviors wrong and for sometimes making demons fly out of your nose. Through 25 puzzles, from the useful to the outright weird, we explore some of C++'s most interesting quirks. How does initialization actually work? Do temporaries even exist? Why is `+!!"" ` a valid expression in C++? As you work through each puzzle, you will peel off some of the layers of complexity of C++, getting a fundamental understanding of how the language works. This will help you write better code and recognize issues more easily while debugging.

Each puzzle in the book is a complete, seemingly simple C++ program, but can you figure out the output for each, or will the answers stump you? Most of the programs compile and have deterministic, though sometimes surprising, output. Some might, however, have undefined behavior, where anything can happen, including making demons fly out of your nose!

Де можна придбати

М'яка обкладинка
400 грн

Коментарі

Немає коментарів. Будьте першим, хто залишить коментар!

Щоб залишити коментар, будь ласка, увійдіть або зареєструйтесь