+ 4
Predict the output of the given program ? #include<iostream> using namespace std; int main() { int m=7,k=3; k+=m++; m=++k; k=k++; m+=++k; cout<<m<<" "<<k; return 0; }
Challenging Game ;)
10 Answers
+ 6
23 12
+ 5
23 12
+ 4
23 12
+ 4
23 12
Need to consider the pre and post increment
+ 1
3 3
Assuming the variables start at 0, which they don't actually do in standard c++ đ
+ 1
4 3
0
I think correct answer here
0
23
0
12
0
+5