Last Updated :
14 Feb, 2019
What will be the output of the following program?
#include <stdio.h>
int main(void)
{
int x = 30;
printf(\"%d\", (x+++x*x-x/x));
return 0;
}
(A) 990
(B) 991
(C) 992
(D) Error
Answer: (A)
Explanation: (x+++x*x-x/x) will be evaluated as
= 30 + 31 * 31 – 31 / 31
990
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...