Vidyalelo
C Programming · Q63

File Input Output

Programming · C Programming · question 63

Q63

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

A.
Compilation error
B.
Somegarbage value
Answer
C.
Whatever user types
D.
Depends on the standard

Answer: Option B

Solution

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