C Fundamentals - Study Mode

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

(D) 8

[#192] What will be the output of the following C code? #include <stdio.h>
#include <string.h>
int main()
{
char *str = "x"
char c = 'x'
char ary[1]
ary[0] = c
printf("%d %d", strlen(str), strlen(ary))
return 0
}
Correct Answer

(D) 1 (undefined value)

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

(A) 2

[#194] What will be the output of the following C code? #include <stdio.h>
int main()
{
int x = 3, i = 0
do {
x = x++
i++
} while (i != 3)
printf("%d
", x)
}
Correct Answer

(B) Output will be 3

[#195] Which of the following declaration is not supported by C?
Correct Answer

(A) String str