Chapter 4. CHARACTER STRINGS AND FORMATTED INPUTOUTPUT

I l @ ve RuBoard

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() and scanf() . With these two functions, you have the program tools you need to communicate with users and to format output to meet your needs and tastes. Finally, you'll take a quick look at an important C facility, the C preprocessor, and learn how to define and use symbolic constants.

I l @ ve RuBoard


C++ Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 314
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net