C Programming Absolute Beginner's Guide (3rd Edition)
Part I: Jumping Right In ...
1. What Is C Programming, and Why Should I Care? In This Chapter Understanding the basics of C programming Finding and installi ...
supplied. You can buy or download thousands of programs for your computer, tablet, or phone, but when a business needs a compute ...
use a version of the software no matter what operating system you use. However, feel free to pick whichever programming environm ...
larger file to download (which has mingw in its title). That version has debugging tools that will come in handy when you become ...
FIGURE 1.3 Welcome to your programming home! Note The C program you write is called source code. A compiler translates C source ...
Note An error in a computer program is called a bug. Getting rid of errors is called debugging a program. Take some time to expl ...
—Chapter 2, “Writing Your First C Program,” takes you on your maiden C programming voyage. The Absolute Minimum This chapter int ...
2. Writing Your First C Program In This Chapter Typing your first program Using the main() function Identifying kinds of data ...
FIGURE 2.1 The output of your first program. Note Producing that one-line message took a lot of work! Actually, of the eight lin ...
C isn’t picky about everything. For instance, most of the spacing you see in C programs makes the programs clearer to people, no ...
multiple parts, as in doReportPrint(), it’s common practice to use uppercase letters to begin the separate words, to increase re ...
was part of the bargain!” Well, you can relax, because C does your math for you; you don’t have to be able to add 2 and 2 to wri ...
Tip None of the following are valid characters. Only single characters, not multiple characters, can go inside apostrophes. ‘C i ...
called base-16 and base-8, respectively, are weird ways of representing numbers. 053 is an octal number, and 0x45 is a hexadecim ...
values, no matter how large or small the values stored there are. On any given day, a large post office box might get much less ...
you might add to your programs. You’ll see another function, printf(), that is a built-in C function that produces output. Here ...
3. What Does This Do? Clarifying Your Code with Comments In This Chapter Commenting on your code Specifying comments Using whit ...
need faster. If you didn’t comment, you would have to decipher your C code every time you looked through a piece of it. Program ...
/* This is a single-line comment */ for (i = 0; i < 25; i++) /* Counts from 0 to 25 */ Note Notice that comments can go on li ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf