Getting Started With C

  • Documentation :This section consists of the description of the program, the name of the program, and the creation date and time of the program.
  • It is specified at the start of the program in the form of comments.
  • Documentation can be represented as:

    // description, name of the program, programmer name, date, time etc.
    or

    /*
    description, name of the program, programmer name, date, time etc.
    */

  • Anything written as comments will be treated as documentation of the program and this will not interfere with the given code.
  • Preprocessor Section :

    Example :

    Program.c

    Definition :

    Global Declaration :

    Main() Function :

    Sub Programs :

    Resources :

    Assess Your Understanding
    Answer the following Two questions:

    Q1. What is the correct order of elements in the structure of a C program?

    Q2. What is the purpose of the return statement in the main() function of a C program?