+ 6

Its ouput is 3 3 1 , but why ?

int main(){ int a = 1 ; printf ( "%d %d %d", a, ++a, a++ ) ; return 0;

7th Jul 2019, 4:48 PM
Monkey D. Luffy
Monkey D. Luffy - avatar
3 ответов
+ 2
It can be, that those arguments are passed in "from right to left" order.
7th Jul 2019, 5:03 PM
Seb TheS
Seb TheS - avatar
+ 1
The execution process always start from right to left..... That's why. ...☺☺
22nd Jul 2019, 7:36 AM
MADHU KUMAR KOULAS
MADHU KUMAR KOULAS - avatar