Q:

What is the output of the below code?

0

What is the output of the below code?

#include <stdio.h>
int main()
{
    int x = -30;
    x = x >> 1;
    printf("%d\n", x);
}

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Output:

implementation-defined.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Embedded C interview questions and answers (2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a program to count set bits in an integer?... >>
<< What is the output of the below code?...