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? :)
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 !!
avvek eta ki re??m goin to fail tmrw........wat's d question??
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? :)
use ++j for immediate increse or else it will increment after the end of loop .
ya its B.
the value of j will be used and incrementation is done after the statement,as pritish said