R

Rudra Pratap Singh • 3.39K Points
Extraordinary

Q. What is the output of the following C program?

Code:
#include <stdio.h>

void main()
{
    int x = 3;
    int y = ++x + x++ + --x;
    printf("Value of y is %d", y);
}
  • (A) Value of y is 10
  • (B) Value of y is 13
  • (C) Value of y is 12
  • (D) Undefined value

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics