O'Reilly logo

Sams Teach Yourself C++ in One Hour a Day, Sixth Edition by Bradley Jones, Siddhartha Rao, Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required