Professional Documents
Culture Documents
Structured Programming Language: Course Title:510201 Total Marks:100 Incourse Marks:20 Written Marks:80
Structured Programming Language: Course Title:510201 Total Marks:100 Incourse Marks:20 Written Marks:80
Course Title:510201
Total Marks:100
Incourse Marks:20
Written Marks:80
Md. Moklesur Rahman, Lecturer, Dept. Of CSE 22-Jan-22 1
Programming Language
The middle-level language lies in between the low level and high-level
language. C language is the middle-level language. By using the C language,
the user is capable of doing the system programming for writing operating
system as well as application programming
Every C program has a primary (main) function that must be named main.
... The main function serves as the starting point for program execution. It
usually controls program execution by directing the calls to other functions
in the program.
❖ void main()
❖ int main()
❖ main ( )
❖ int main( void)
❖ void main (void)
Md. Moklesur Rahman, Lecturer, Dept. Of CSE 22-Jan-22 22
The #include Directive
Example
#include<stdio.h>
Definition Section
In this section, we define different constants. The keyword define is used in this part
Example
#define PI=3.14
{
return (a+b);
}