Skip to product information
char char_1{'t'};
char_1 = 'm';
auto &char_3 = char_1;
char_1 = 'u';
char char_5{'o'};
char_1 = 'c';
auto &char_7 = char_3;
char char_8{'l'};
auto &char_9 = char_1;
char_8 = 'k';
auto &char_11 = char_7;
char char_12{'l'};
print("{}{}{}{}{}", char_1, char_12, char_5, char_7, char_8);
} // Answer (5): __ __ __ __ __
Copy and Reference Puzzlers - Book 2: 128 FUN Puzzles - Paperback
$13.48
Description
by Jason Turner (Author)
128 FUN Puzzles of Increasing Difficulty Where You Must Ask: Was that a copy, or was it a reference, and who last changed that value?
Book 2 now has std:: swap puzzles!
Example puzzle:
void run() {char char_1{'t'};
char_1 = 'm';
auto &char_3 = char_1;
char_1 = 'u';
char char_5{'o'};
char_1 = 'c';
auto &char_7 = char_3;
char char_8{'l'};
auto &char_9 = char_1;
char_8 = 'k';
auto &char_11 = char_7;
char char_12{'l'};
print("{}{}{}{}{}", char_1, char_12, char_5, char_7, char_8);
} // Answer (5): __ __ __ __ __
Number of Pages: 232
Dimensions: 0.49 x 11 x 8.5 IN
Publication Date: August 22, 2022
Care
To maintain the beauty and integrity of your purchase, we recommend treating it with care. Simple maintenance practices, such as gentle washing and proper storage, can effectively preserve the longevity of your favorites. We encourage you to refer to the care instructions included with each item, designed to help you keep your purchase in top condition.
Design
Our dedication to excellence extends beyond materials; it encompasses the artistry and craftsmanship illustrated in every piece we create.