Appendix D. Answers

Day 1


1. Interpreters read through source code and translate a program, turning the programmer’s “code,” or program instructions, directly into actions. Compilers translate source code into an executable program that can be run at a later time.

2. Every compiler is different. Be certain to check the documentation that came with your compiler.

3. The linker’s job is to tie together your compiled code with the libraries supplied by your compiler vendor and other sources. The linker lets you build your program in “pieces” and then link together the pieces into one big program.

4. Edit source code, compile, link, test (run), repeat if necessary.


1. This program initializes two integer variables (numbers) and ...

Get Sams Teach Yourself C++ in 21 Days , Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.