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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.