Top

Discussion

What will be the output of the program?

#include
#define str(x) #x
#define Xstr(x) str(x)
#define oper multiply

int main()
{
    char *opername = Xstr(oper);
    printf("%s\n", opername);
    return 0;
}

 

  • A.Error: in macro substitution
  • B.Error: invalid reference 'x' in macro
  • C.print 'multiply'
  • D.No output

Answer: C

No answer description available for this question.

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

Post your comment