filmov
tv
Basic Structure of C Program With Notes (Simple English)
Показать описание
Basic Structure of C Program With Notes (Simple English)
Facebook:
Email, Contact Us:
Subscribe Us:
This is the first video of C language series,
this video is very useful and helpful for you specially, for students
in this video we have learned,
Basic Structure of C Program:-
"The format or way according to which a computer program is written is called the structure of the program".
The program structure of different programming languages is different. C is a structured programming language.
It provides a well defined way of writing programs.
The whole program is controlled within main ( ) along with left brace denoted by “{” and right braces denoted by “}”.
If you need to declare local variables and executable program structures are enclosed within open brace “{” and “}”
and close brace this is called, body of the main function.
The main ( ) function can be preceded by documentation, preprocessor statements and global declarations.
Documentation section:
The documentation section consist of a set of comment lines giving the name of the program,
the another name and other details, which the programmer would like to use later.
Single line comments:
we can write single line comment with the double forward slash
for exaple:
// this is my first program
Multiple line comments:
The characters or words or anything which are given between this “/*” and this sign “*/”, won’t be considered by C compiler for
compilation process.These will be ignored by C compiler during compilation.
Preprocessor Statements or link section:
The preprocessor statement begin with # symbol and are also called the preprocessor directive.
These statements instruct the compiler to include C preprocessors such as header files and
symbolic constants before compiling the C program.
Definition Section:
All the symbolic constants are written in definition section.
Macros are known as symbolic constants.
Global Declarations:
The variables are declared before the main ( ) function as well as user defined functions are called global variables.
These global variables can be accessed by all the user defined functions including main ( ) function.
The main ( ) function:
Each and Every C program should contain only one main ( ).
The C program execution starts with main ( ) function.
No C program is executed without the main function.
The main ( ) function should be written in small (lowercase) letters and it should not be terminated by semicolon.
YOu guys have any Query?
So please go ahead to the Comment BOx.
Subscribe Us:
Facebook:
Email, Contact Us:
Subscribe Us:
Facebook:
Email, Contact Us:
Subscribe Us:
This is the first video of C language series,
this video is very useful and helpful for you specially, for students
in this video we have learned,
Basic Structure of C Program:-
"The format or way according to which a computer program is written is called the structure of the program".
The program structure of different programming languages is different. C is a structured programming language.
It provides a well defined way of writing programs.
The whole program is controlled within main ( ) along with left brace denoted by “{” and right braces denoted by “}”.
If you need to declare local variables and executable program structures are enclosed within open brace “{” and “}”
and close brace this is called, body of the main function.
The main ( ) function can be preceded by documentation, preprocessor statements and global declarations.
Documentation section:
The documentation section consist of a set of comment lines giving the name of the program,
the another name and other details, which the programmer would like to use later.
Single line comments:
we can write single line comment with the double forward slash
for exaple:
// this is my first program
Multiple line comments:
The characters or words or anything which are given between this “/*” and this sign “*/”, won’t be considered by C compiler for
compilation process.These will be ignored by C compiler during compilation.
Preprocessor Statements or link section:
The preprocessor statement begin with # symbol and are also called the preprocessor directive.
These statements instruct the compiler to include C preprocessors such as header files and
symbolic constants before compiling the C program.
Definition Section:
All the symbolic constants are written in definition section.
Macros are known as symbolic constants.
Global Declarations:
The variables are declared before the main ( ) function as well as user defined functions are called global variables.
These global variables can be accessed by all the user defined functions including main ( ) function.
The main ( ) function:
Each and Every C program should contain only one main ( ).
The C program execution starts with main ( ) function.
No C program is executed without the main function.
The main ( ) function should be written in small (lowercase) letters and it should not be terminated by semicolon.
YOu guys have any Query?
So please go ahead to the Comment BOx.
Subscribe Us:
Facebook:
Email, Contact Us:
Subscribe Us:
Комментарии