C Fundamentals - Study Mode

[#151] What is the problem in the following variable declaration? float 3Bedroom-Hall-Kitchen?
Correct Answer

(D) All of the mentioned

[#152] What will be the output of the following C code? #include <stdio.h>
int main()
{
int y = 2
int z = y +(y = 10)
printf("%d
", z)
}
Correct Answer

(B) 20

[#153] What will be the output of the following C code? #include <stdio.h>
#define a 10
int main()
{
const int a = 5
printf("a = %d
", a)
}
Correct Answer

(C) Compilation error

[#154] What will be the output of the following C function? #include <stdio.h>
void reverse(int i)
int main()
{
reverse(1)
}
void reverse(int i)
{
if (i > 5)
return
printf("%d ", i)
return reverse((i++, i))
}
Correct Answer

(A) 1 2 3 4 5

[#155] For which of the following, "PI++
" code will fail?
Correct Answer

(A) #define PI 3.14