Posts

Showing posts with the label structure of C Program
Image
  structure of C Program? Ans: A C program contains one or more functions. The statements in a C program are written in a logical sequence to perform a specific task. Execution of a C program begins at the main() function . You can choose any name for the functions. Every program must contain one function that has its name as main(). STRUCTURE OF A C PROGRAM A C program may contain one more sections as shown in below Documentation Section: The documentation section consists of a set of comment lines giving the name of the program, the author and other details. Link Section: The link section provides instructions to the compiler to link functions from the system library. Definition Section: The definition section defines all symbolic constants. Global Declaration Section: There are some variable 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 ...