πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Value of y is 13

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
227
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rudra Pratap Singh
Publisher
πŸ“ˆ
90%
Success Rate