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;
}
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;
}
No comments:
Post a Comment