O'Reilly logo

C Programming Essentials by S. K. Bandyopadhyay, K. N. Dey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required