Top

Discussion

What will be the output of the program?

#include
int main()
{
    int a=0, b=1, c=3;
    *((a) ? &b : &a) = a ? b : c;
    printf("%d, %d, %d\n", a, b, c);
    return 0;
}

 

  • A.0, 1, 3
  • B.1, 2, 3
  • C.3, 1, 3
  • D.1, 3, 1

Answer: C

No answer description available for this question.
 

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

Post your comment