Top

Discussion

What will be the output of the program?

#include
#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: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment