Can someone explain array[++index]
vs array[index++]
?
I am reading a data structure book and it seems like this notation does have a difference.
Answer
array[++index] - which means increment to variable index in current statement itself.
array[index++] - which means increment to variable index after executing current statement.
No comments:
Post a Comment