Structure of a C Program
Structure of a C Program Every program written in C follows a certain structure. That structure is as shown below: Contents [ hide ] 1 Documentation Section 2 Link Section 3 Definition Section 4 Global Declaration Section 5 main() Function Section 6 Subprogram Section 7 Example: HelloWorld Program Documentation Section The documentation section is used to improve the readability and to understand various elements in the program. This section is used to provide help for the general users. This section consists of plain text written in English and includes information like author, purpose of the program, date on which the program was created etc. This section is included inside comments. Example: /********************************* * Author: Name * Date: 7/10/2012 * Purpose: Theme of the program ********************************/ Link Section The link section is used to include th...