Vidyalelo
C Programming · Q132

Standard Library Functions

Programming · C Programming · question 132

Q132

What will be the output of the following C code? Maximum value of int = 1000 Maximum value of float = 5000 Maximum value of short int = 327 Minimum value of short int = -328 #include #include #include main() short int d; d=INT_MAX + FLT_MAX; printf("%d",d);

A.
error
B.
6000
C.
327
Answer
D.
-328

Answer: Option C

Solution

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