Vidyalelo
C++ Programming · Q28

Operators and Expressions in C++

Programming · C++ Programming · question 28

Q28

What will be the output of the following C++ code? #include using namespace std; int main () int x, y; x = 5; y = ++x * ++x; cout << x << y; x = 5; y = x++ * ++x; cout << x << y; return 0;

A.
749735
Answer
B.
736749
C.
367497
D.
367597

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board