+ 3
Please someone explain me the output.
int a =1 ; int b = ((++a) * (++a) * (++a)); cout <<b ; output is :- 36 .. How ??????
2 Respostas
+ 4
So, look. prefix plus 1 and chande the last variable by plus 1 too, ok?
and how does it solute:
(++a)*(++a)*(++a)=(++1)*(++1)*(++1)=
=(2)*(++2)*(++2)=
=(3)*(3)*(++3)=
=(3)*(3)*(4)= 36
+ 1
Thanks a lot my friend . You gave an excellent explanation. @ dimash sabit