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 = -15;
    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:

undefined behavior.

 

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
What is the output of the below code?... >>
<< Write a program to check an integer is a power of ...