+ 1
How to reverse an array in c++?
Hi everyone!! How can I reverse an array in c++ I tried different tutorials but couldn't understand them
3 Answers
+ 2
to reverse and array, you can just use a loop, then iterate from the last index to the first index which is zero
+ 1
To actually reverse it, i made a simple demo:
https://code.sololearn.com/cJ3oKToomac3/?ref=app
+ 1
alright found the answer...
it was easy đ
https://code.sololearn.com/cFU1wt0It21r/?ref=app