Thursday, July 15, 2021

History of c language 

C was originally developed in 1970 s by Dennis Ritchie at Bell Telephone Laboratories.

Definition of c language

C is high level, general purpose, structured programming language. C is closely same to the algebric expressions like if, else, for, while etc.

                          "C" contains certain additional features that allows it to be used at a lower level, acting as bridge between between machine language and the high level language.

              .This allows "c" to be used for system programming as well aa for application programming.

All C program having sectional parts which are mentioned below

1. Documentation section

2. Link section.                   

3. Global Declaration Section        

4. Definition Section       

5. Function Prototype Declaration Section     

6. Main function 

7. User defined 

See structure of C program with an  Example.

1./*
2. Documentation section
3.C programing basic & structure of C program
4. Author Cyberher.blogspot.com
5. Date 15 july 2021
6./*
7.
8.# include /*link section */
9. int total=0;/*global function declaration, definition section */
10. int sum (int, int) ;/*function declaration section */
11. int main () /*main function */
12.{
13. printf("this is a c basic program \n");
14.total =sum(1,1);
15. printf("sum of two numbers:d\n" , total);
16. return 0;
17.}
18.
19. int sum (int a, int b);/*user defined function */
20.{
21. return a+b;/*definition section */
22.}

Output 

This is a c basic program 
Sum of two number :2

Thank you šŸ™














                      





1 comment: