C Fundamentals - Study Mode

[#271] What will be the data type of the following expression? (Initial data type: a = int, var1 = double, var2 = float) expression (a < 50)? var1 : var2
Correct Answer

(C) double

[#272] Which of the following method is accepted for assignment?
Correct Answer

(B) a = b = c = d = 5

[#273] What will be the output of the following C code? #include <stdio.h>
int main()
{
int i = 5
i = i / 3
printf("%d
", i)
return 0
}
Correct Answer

(B) 1

[#274] What will be the output of the following C code? #include <stdio.h>
int main()
{
int x = 2, y = 2
float f = y + x /= x / y
printf("%d %f
", x, f)
return 0
}
Correct Answer

(B) Compile time error

[#275] What will be the output of the following C code? #include <stdio.h>
void main()
{
int b = 5 + 7 * 4 - 9 * (3, 2)
printf("%d", b)
}
Correct Answer

(B) 15