R
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);
}
void main()
{
int x = 3;
int y = ++x + x++ + --x;
printf("Value of y is %d", y);
}
- Correct Answer - Option(B)
- Views: 144
- Filed under category C Programming
Discusssion
Login to discuss.