+ 2

how can I reverse an array in c?

12th Mar 2021, 7:07 PM
Michael Ndula
Michael Ndula - avatar
3 Answers
+ 3
With for loop
12th Mar 2021, 7:10 PM
Igor Kostrikin
Igor Kostrikin - avatar
+ 2
Optimised way to reverse an array elements by exchanging zero element with last element and increment/decrement indices and again exchange elements repeat this until mid-point is reached Here exchage means swapping array values DHANANJAY
12th Mar 2021, 11:06 PM
DHANANJAY PATEL
DHANANJAY PATEL - avatar
+ 1
thank you guys i've managed to reverse an array
13th Mar 2021, 5:47 AM
Michael Ndula
Michael Ndula - avatar