Posts

Showing posts from October 31, 2019

Structure of c

Image
1. Documentation section:  (optional) It is used to write comments in the program which shows the name of the author or description of the program and other details.    Comments are of two types Example: // HERE YOU CAN WRITE YOUR COMMENTS IN A SINGLE LINE // Created by buildup c language /* HERE YOU CAN WRITE YOUR COMMENTS IN MULTIPLE LINES */ /* Please subscribe our blog from mail notification- left sidebar */ Note that the documentation section is not executed by the compiler. In other words, it does not affect the output of your program. 2. Link section:    It gives the instruction to the compiler to link the function from the system library in the program. Example: #include <stdio.h> #include <conio.h> #include <math.h> 3.  Definition section:    It defines all the symbolic constants. Example: void fun(); 4.  Global declaration section:  It is used when m...

Popular posts from this blog

Getting input in C

Unary Operator