C-#include .

In this session i have discussed #include preprocessor in C .


The #include preprocessor directive is used to include the specified file in current file . It can include the system defined file or user defined file both . If it not found the included file then compiler give the error .


Syntax

#include<stdio.h>

#include "filename"


Example : Write a program that demonstrate the use of #include .

    #include<stdio.h>
    int main()
    {
        printf("Hello friends");
        return 0;
    }
    
    OUTPUT : Hello friends
    

In the above code i have include the stdio.h file in program .


Welcome to AndroidATPoint.

back image                     next image