Basic Structure of a C Program
A C program generally has the following parts: § Preprocessor Commands § Functions § Variables § Statements & Expressions § Comments Let us consider a C Program: #include<stdio.h> void main() { printf("Hello, World!"); } Preprocessor Commands: These commands tells the compiler to do some preprocessing before executing the actual compilation. For example, “#include <stdio.h>” is a preprocessor command which tells a C compiler to include stdio.h file before going to actual compilation. Functions: These are main building blocks of any C Program. Every C Program will at least have one function which is a mandatory function called main() function. This function is prefixed with keyword int or void or any other datatype. This defines the return type of the function. For int main() the program will return an integer value to the terminal (system). The C Programming language provides a set of built-in functions. In the above example printf() is a C b