0
how the value decrease in increment operater while in prefix???
4 Respuestas
+ 5
increment never leads to the decrement,
whether it's prefix or suffix,
post your script where you got the issue.
0
yeah recently i confirmed ittt...thanx for ansawering
0
if the increment operator is in prefix the value is calculated before it is used in any following calculations.
for example
a = 5;
b = ++a * 10;
cout << b;
would return 60 as the 1 is added on to a (5) before the multiplication
0
oh actually i was not calculating the increment operator