View This Site In Your Own Language

Intro to basic structure program of C




#include<stdio.h>   //  '#include' is called preprocessor and 'stdio.h' is our header file
int main()                // main function
{                             // starting of program
printf("Welcome to Coder Planet!");   // printf is a built-in function
return 0;                // indicates our program closes successfully
}                            // end of program



Preprocessor: A program that is run automatically by your compiler. It adds header file's source code to the program. e.g. include, define etc.

Header file: It includes all of the built-in functions code. e.g. stdio, conio, math etc.

Built-in function: A function whose code is written already into header file. e.g. printf, scanf etc.
Intro to basic structure program of C Intro to basic structure program of C Reviewed by Ikram on 9/25/2019 03:18:00 PM Rating: 5

No comments:

Powered by Blogger.