
































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
C Programming-Overview of C-Lecture Notes
Typology: Slides
1 / 40
This page cannot be seen from the preview
Don't miss anything!

































B.Bhuvaneswaran, AP (SG) / CSE 9791519152 [email protected] Programming Logic
C language was developed by Dennis Ritchie of Bell Laboratories in New Jersey in the year 1972. The language was named as C because it was the successor of another language called B.
The documentation section consists of a set of comment lines giving the name of the program, the author and other details, which the programmer would like to use later.
The definition section defines all symbolic constants.
There are some variables that are used In more than one function. Such variables are called global variables and are declared in the global declaration section that is outside of all the functions. This section also declares all the user–defined functions.
The declaration part declares all the variables used in the executable part. There is at least one statement in the executable part. These two parts must appear between the opening and the closing braces. The program execution begins at the opening brace and ends at the closing brace. The closing brace of the main function section is the logical end of the program. All statements in the declaration and executable parts end with a semicolon(;).
The subprogram section contains all the user–defined functions that are called In the main function. User–defined functions are generally placed immediately after the main function, although they may appear in any order.
Executing a program written in C involves a series of steps. These are: