Structure of C program

469 views 6 slides Dec 03, 2023
Slide 1
Slide 1 of 6
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6

About This Presentation

Structure of C program


Slide Content

C Programming Program structure, Compilation and Execution of a Program.

Structure of a C program Documentation Section Link Section Definition Section Global Declarations Section Main function Subprograms

Example //Practical 1 #include<stdio.h> void main() { printf (“Hello”); } Documentation Section Link Section Main function Statements

Rules in C Programming Execution of every C program starts with the main() function. Each C program contains only one main() function. Every statement in C program ends with semicolon(;). C is a case sensitive language. Most of the statement in C program are in lowercase except some symbolic names and outputs. Each opening brace should have its closing brace. Braces are used to define the block in coding. C can contain comments anywhere in the program. The execution of program starts with the opening brace of main() function and ends with the closing brace of the main() function.

Compilation and Execution of a Program. C code Linker Compiler Primary Memory RAM Preprocessing Assembler Loader Libraries

THANK YOU