2. Writing Your First C Program
In This Chapter
• Typing your first program
• Using the main()
function
• Identifying kinds of data
You get to see your first C program in this chapter! Please don’t try to understand every character of the C programs discussed here. Relax and just get familiar with the look and feel of C. After a while, you will begin to recognize elements common to all C programs.
A Down-and-Dirty Chunk of Code
This section shows you a short but complete C program and discusses another program that appears in Appendix B, “The Draw Poker Program.” Both programs contain common and different elements. The first program is extremely simple:
/* Prints a message on the screen */#include <stdio.h>
Get C Programming Absolute Beginner’s Guide, 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.