Chapter 3. Data and C
You will learn about the following in this chapter:
Keywords
int, short, long, unsigned, char, float, double
Operator
sizeof
Function
scanf()
In this chapter, you learn about the basic data types that C uses and about the distinctions between integer types and floating-point types. You practice writing constants and declaring variables of those types. You begin studying 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 ...
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.