Appendix D. Answers

Answers for Lesson 1

Quiz

1. C is powerful, popular, and portable.

2. The compiler translates C source code into machine-language instructions that your computer can understand.

3. Editing, compiling, linking, and testing.

4. The answer to this question depends on your compiler. Consult your compiler’s manuals.

5. The answer to this question depends on your compiler. Consult your compiler’s manuals.

6. The appropriate extension for C source files is .C (or .c).

Note: C++ uses the extension .CPP. You can write and compile your C programs with a .CPP extension, but it’s more appropriate to use a .C extension.

7. FILENAME.TXT would compile. However, it’s more appropriate to use a .C extension rather than .TXT.

8. You should ...

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