Top

Discussion

What will be the output of the program ?

#include

int main()
{
    int i=32, j=0x20, k, l, m;
    k=i|j;
    l=i&j;
    m=k^l;
    printf("%d, %d, %d, %d, %d\n", i, j, k, l, m);
    return 0;
}

 

  • A.0, 0, 0, 0, 0
  • B.0, 32, 32, 32, 32
  • C.32, 32, 32, 32, 0
  • D.32, 32, 32, 32, 32

Answer: C

No answer description available for this question.

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

Post your comment