O'Reilly logo

Programming in C: A Practical Approach, First Edition by Ajay Mittal

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

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