Structure of C program

pavanprasad6 723 views 9 slides Jun 27, 2017
Slide 1
Slide 1 of 9
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9

About This Presentation

C is the best programing language .


Slide Content

Structure of C program

Hi My name Is Pavan prasad this video will show you the structure of a C program

Structure:

Documentation section Header file section Global variable declaration Main function { } User defined function { }

Comment lines : comment lines will improve the readability of a user. In C language comment lines are started with /* and ended with */ Documentation section:

Header file section:  In C language we have so many header files.  Each and every header file will have ‘ .h ’ extension.  A header file contains the function definition.

Global variable declaration: Variable : variable is the name of the memory location. Global variable: These are the variables which are defined out side the function and those variables can be accessed through out the program.

Main function: The main function the one where the program execution starts and terminates. Syntax: datatype main() Datatype : There are different datatypes in C language and void is the default datatype.

Thanks for watching Please SUBSCRIBE to my YouTube channel ( Pavan prasad. G )
Tags