What will the output of the following C code be? #include stdio.h> void main() int y = 3; int x = 5 percent 2 * 3 / 2; printf("Value of x is percent d," x);
A. The value of x is 1.
B. The value of x is two.
C. The value of x is 3.
D. Compile time error
Answer:A
What will the output of the following C code be? #include stdio.h> void main() int y = 3; int x = 5 percent 2 * 3 / 2; printf("Value of x is percent d," x);
A. The value of x is 1. B. The value of x is two. C. The value of x is 3. D. Compile time error
Explanation: The value of x is 1.