The Gateway to Computer Science Excellence
0 votes
56 views
output is a=34 and x=13 can anyone plzz explain
#include <iostream>
using namespace std;
int main()
{
int x = 10, a;
a = x++ + ++x + x++;
cout << "Post Increment Operation";
cout << "\na = " << a;
cout << "\nx = " << x;
return 0;
}
closed as a duplicate of: Undefined Behaviour in C
in Programming by (115 points)
closed by | 56 views

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,459 answers
195,378 comments
100,274 users