O'Reilly logo

C Primer Plus, Fifth Edition by Stephen Prata

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

CHAPTER 3DATA AND C

You will learn about the following in this chapter:

• Keywords:

int, short, long, unsigned, char, float, double, _Bool, _Complex, _Imaginary

• Operator:

sizeof

• Function:

scanf()

• The basic data types that C uses

• The distinctions between integer types and floating-point types

• Writing constants and declaring variables of those types

• How to use the printf() and scanf() functions to read and write values of different types

Programs work with data. You feed numbers, letters, and words to the computer, and you expect it to do something with the data. For example, you might want the computer to calculate an interest payment or display a sorted list of vintners. In this chapter, you do more than just read about data; you ...

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