Vidyalelo
C Programming · Q271

File Input Output

Programming · C Programming · question 271

Q271

What will be the output of the following C code? #include int main() short int i; scanf("%hd", &i); printf("%hd", i); return 0;

A.
Compilation error
B.
Undefined behavior
C.
Whatever user types
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board