Top

Discussion

What will be the output of the program?

#include
#define MAN(x, y) ((x)>(y)) ? (x):(y);

int main()
{
    int i=10, j=5, k=0;
    k = MAN(++i, j++);
    printf("%d, %d, %d\n", i, j, k);
    return 0;
}

 

  • A.12, 6, 12
  • B.11, 5, 11
  • C.11, 5, Garbage
  • D.12, 6, Garbage

Answer: A

No answer description available for this question.

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

Post your comment