






























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A brief history of the C programming language and its structure. It explains the development of C, its relation to BCPL and B, and its popularity. It also discusses the structure of a C program, including the preprocessor command section, global data declaration section, and function definition section. The document covers topics such as compiling and executing C programs, constants, variables, and data types, including character types, integer types, floating-point types, and void types. It also explains how to define constants and use operators and punctuators in C programs.
Typology: Study notes
1 / 70
This page cannot be seen from the preview
Don't miss anything!































































History of C
History of C
Structured Programming Structured programming is a powerful and easy approach for developing complex program. In this approach, a program is divided into a set of module, each modules may be sub-divided into a set of sub-modules and so on until they become indivisible unit. Each modules/sub-modules are called functions or subroutines and contain a set of instructions to perform a specific task.
‘Master Module’ controls the execution of the other modules directly or indirectly. This module acts as an entry point as well as exit-point of the program execution i.e the program starts its execution by invoking this master module, it may then invoke the other sub modules whenever necessary.
Structure of C Program A C program consists of a group of functions. A function is subprogram containing a set of statements that perform a specific task. Each functions in a C program implements a module or sub module of the program.
A C program consists of the following sections namely