Appendix F

Answers to Test Yourself Questions

Chapter 1: Data Types, Variables and Constants

  1. a. Dennis Ritchie; b. letter or an underscore; c. data type; d. definition; e. l-value; f. modifiable l (ell); g. const; h. escape sequences; i. string; j.double; k. functions; l. semicolon; m. format specifiers, format string; n. sizeof; o. l-value.
    1. True.
    2. True.
    3. True.
    4. False. Comments are to increase the readability of the program. They are not processed by the compiler.
    5. True.
    6. False. It is an example of shorthand declaration.
    7. False. Type modifier modifies the base type to yield a new type.
    8. False. Constants do not have a modifiable l-value. In general, we say that constants do not have an l-value and have only r-value.
    9. True. A character constant can ...

Get Programming in C: A Practical Approach, First 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.