Ok, well, let us say for simplicity sake that contenu's length is 5, therefore tallie is 5. Now, what you're trying to do is reverse the contents of contenu into tab2. So we're saying tabt2[tallie-1-i] = contenu[i] -- well check out the value of tallie-1-i with respect to i
value of i: Value of tallie-1-i:
0 (5)-1-(0) = 4
1 (5)-1-(1) = 3
2 (5)-1-(2) = 2
3 (5)-1-(3) = 1
4 (5)-1-(4) = 0
Hope that helps.
Edit: I can't get it to align properly, for some reason.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
|