1 GETTING STARTED WITH C
In this chapter, you’ll develop your first C program: the traditional “Hello, world!” program. We’ll examine the various aspects of this simple C program, compile it, and run it. Then I’ll review some editor and compiler options and lay out common portability issues you’ll quickly become familiar with as you code in C.
Developing Your First C Program
The most effective way to learn C programming is to start writing C programs, and the traditional program to start with is “Hello, world!” Open your favorite text editor and enter the program in Listing 1-1.
hello.c
#include <stdio.h>
#include <stdlib.h>
int main() ...
Get Effective C, 2nd 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.