Top

Discussion

Predict the output of following program.

#include 

int main()
{
 char var=0x04;

 var = var | 0x04;
 printf("%d,",var);
 var |= 0x01;
 printf("%d",var);
 
 return 0;
}

 

  • A.
    8,9
  • B.4,5
  • C.8,8
  • D.4,4

Answer: B

No answer description available for this question.
 

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

Post your comment