Appendix D. Answers

Lesson 1, “Getting Started”

Quiz

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 later.

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), and repeat if necessary.

Exercises

1.

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

Get Sams Teach Yourself C++ in One Hour a Day, Sixth 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.