Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why?

#include <iostream> using namespace std; int main() { int a=2; int y; y=a++*3+--a; cout<<y; return 0; }

23rd Nov 2017, 12:36 AM
r2d2c3po
2 Answers
0
why output 8??
23rd Nov 2017, 12:37 AM
r2d2c3po
0
good god! :) couldn't explain it better than Jamie.
23rd Nov 2017, 5:43 AM
storm
storm - avatar