How it is possible | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
28th Oct 2017, 2:15 AM
Dmirty Surad
Dmirty Surad - avatar
3 Antworten
0
#include <iostream> using namespace std; int main() { int i=0; i=(++i)+i+(++i); cout<< i<<endl; int x=0; x=(++x)+(++x); cout<< x<<endl; return 0; } x and I return 4. why????
28th Oct 2017, 2:17 AM
Dmirty Surad
Dmirty Surad - avatar
0
We can remove the brackets and the result will not change.
28th Oct 2017, 2:43 AM
Dmirty Surad
Dmirty Surad - avatar
0
how about ++x + ++x + ++x it is 7.
28th Oct 2017, 3:03 AM
Dmirty Surad
Dmirty Surad - avatar