C Fundamentals - Study Mode

[#266] What will be the output of the following C code? #include <stdio.h>
int main()
{
printf("C programming %s", "Class by
%s Shyam", "WOW")
}
Correct Answer

(C) C programming Class by %s Shyam

[#267] What will be the output of the following C code? #include <stdio.h>
void main(
{
double b = 8
b++
printf("%lf", b)
}
Correct Answer

(A) 9.000000

[#268] What will be the output of the following C code? #include<stdio.h>
enum class
{
a,b,c
}
enum class m
main()
{
printf("%d",sizeof(m))
}
Correct Answer

(B) Same as the size of an integer

[#269] What will be the output of the following C code? #include <stdio.h>
void main()
{
int x = 97
int y = sizeof(x++)
printf("x is %d", x)
}
Correct Answer

(A) X is 97
(E) x is 97

[#270] What will be the output of the following C code? #include <stdio.h>
int main()
{
int a = 1, b = 1, c
c = a++ + b
printf("%d, %d", a, b)
}
Correct Answer

(B) a = 2, b = 1