1.

What will be the output of the program?

#include<stdio.h>
#define JOIN(s1, s2) printf("%s=%s %s=%s  n", #s1, s1, #s2, s2);
int main()
{ char *str1="India"; char *str2="BIX"; JOIN(str1, str2); return 0;
}

A. str1=IndiaBIX str2=BIX
B. str1=India str2=BIX
C. str1=India str2=IndiaBIX
D. Error: in macro substitution
Answer» C. str1=India str2=IndiaBIX


Discussion

No Comment Found