Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int n = -5;
    n = n >> 2;
    printf("%d\n", n);
    }
    1. -5
    2. 2
    3. Compilation Error
    4. -2
    5. Either -1 or 1
Correct Option: D

-2



Your comments will be displayed only after manual approval.