Showing posts with label Different method of include header files in C. Show all posts
Showing posts with label Different method of include header files in C. Show all posts

Saturday, December 5, 2015

Different method of include header files in C

Program #7

Description:
In this program, {stdio.h} included 3 times and in 3 different formats.
But still it produced 1 output (without any warning / error).

Reason:
C compiler just keeping the included files and match with the used functions.
In case header files and functions used are match then it doesn't care about
how many times we included the same header file.

#include<stdio.h>
# include <stdio.h>
# include "stdio.h"

int main(){
  clrscr();
  printf("Thanks for viewing Different format of Include Header files!!");

  getch();
  return 0;
}

Popular Posts