Top

Discussion

What will be the output of the program?

#include

int main()
{
    printf("%d %d\n", 32<<1>>1, 32>>0);
    printf("%d %d\n", 32>>-1, 32>>-0);
    return 0;
}

 

  • A.Garbage values
  • B.64 32
    0 32
    16 32
    0 32
  • C.All zeros
  • D.8 0
    0 0
    32 0
    0 16

Answer: B

No answer description available for this question.
 

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

Post your comment