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<stdio.h>
#include<limits.h>
#include<float.h>
main()
{
short int d;
d=INT_MAX + FLT_MAX;
printf("%d",d);
}
Maximum value of int = 1000
Maximum value of float = 5000
Maximum value of short int = 327
Minimum value of short int = -328
#include<stdio.h>
#include<limits.h>
#include<float.h>
main()
{
short int d;
d=INT_MAX + FLT_MAX;
printf("%d",d);
}A. error
B. 6000
C. 327
D. -328
Answer: Option C

Join The Discussion