Discussion :: C++ - MCQs
-
What is the output of this program?#include < iostream >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;}
Answer : Option A
Explanation :
Because of the precedence the pre-increment and post increment operator, we got the output as 749736.
Be The First To Comment