Example 2 :-
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include <stdio.h> #include <stdlib.h> int main() { int x =1 ; printf("%d\n",x); #ifndef log printf("Hello world!\n"); #else printf("Hello Earth\n"); #endif // log return 0 ; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include <stdio.h> #include <stdlib.h> int main() { int x =1 ; printf("%d\n",x); #ifndef log printf("Hello world!\n"); #else printf("Hello Earth\n"); #endif // log return 0 ; } |
0 Comment to "#Ifndef"
Post a Comment