Write a program to show use of if_def macro.
#include<stdio.h> #define INDIA int main() { #ifdef INDIA printf("It`s incredible India\n"); #undef INDIA #else printf("it does not matter it`a just a random text\n"); #endif #ifdef INDIA printf("Incredible India\n"); #else printf("Are you ???\n"); #endif return 0; }
Output
It`s incredible India Are you ???