C - Variables and Data Types
What will be the output of this C code?
int a = 10;
float b = 5.5;
printf("%d", (int)b + a);int a = 10;
float b = 5.5;
printf("%d", (int)b + a);b is cast to int, so 5.5 becomes 5.a (10) gives 15.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions