Chapter 2. The Foundation of C

Here, we present the lexical syntax of C. An overview of C keywords is given. In this chapter, you shall have a look at the data types available in C. Presenting variables and constants, we delineate naming conventions for variables and modes of representing constant values along with functions, which are the basic building blocks of a C program. After getting our first look at two standard library functions for input and output, we move on to writing our first C programs using the techniques we discussed. At the end of this chapter, you will also be learning about the scope of variables in conjunction with the different types of storage classes and their usage. For starters, let us look at the memory of a typical ...

Get C Programming Essentials 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.