Chapter 4. Character Strings and Formatted Input/Output

You will learn about the following in this chapter:

  • Functions

    Strlen (), printf (), scanf ()
    
  • Modifiers

    const, *
    

This chapter introduces you to character strings. You see how they are created and stored and how you can use scanf() and printf() to read and display them. Also, you learn how to use the strlen() function to measure string lengths. You examine the C preprocessor's #define directive and ANSI C's const modifier for creating symbolic constants.

This chapter concentrates on input and output. You'll add personality to your programs by making them interactive and using character strings. You will also take a more detailed look at those two handy C input/output functions, printf() ...

Get C Primer Plus®, Third 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.