avvek eta ki re??m goin to fail tmrw........wat's d question??
can anyone please tell me the meaning of this :
w[ j++] = s ?
does it mean :
A) j++;
w[j]=s
or
B) w[j]=s;
j++;
??????????????
PLEASE HELP.............TOMORROW EXAM !!
-
UP 0 DOWN 0 0 6
6 Answers
Kalyan IIT-K Beware I'm coming
·2010-02-25 08:20:44
Pritish Chakraborty
·2010-02-25 08:34:59
Yeah j++ is post increment. It should be B. Post increment is evaluated after expression is evaluated.
Aveek, why don't you do a dry run on Turbo C++ and see for yourself? :)
Great Dreams
·2010-02-25 08:38:36
use ++j for immediate increse or else it will increment after the end of loop .
tapan
·2010-02-25 08:45:01
ya its B.
the value of j will be used and incrementation is done after the statement,as pritish said