C Programming Code Examples C > Arrays and Matrices Code Examples Program to reverse copy array in C Program to reverse copy array in C This program shall help you learn one of basics of arrays. We shall copy one array into another but in reverse. #include <stdio.h> int main() { int original[25] = {2, 4, 6, 8, 1, 3, 5, 7, 9, 0}; int copied[25]; int loop, count; count = 9; for(loop = 0; loop < 25; loop++) { copied[count] = original[loop]; count--; } printf("original -> copied \n"); for(loop = 0; loop < 25; loop++) { printf(" %2d %2d\n", original[loop], copied[loop]); } return 0; } procedure reversecopy_array(A, B) SET index to 1 Set count to sizeof(A) FOR EACH value in A DO B[count] = A[index] INCREMENT index DECREMENT count END FOR DISPLAY B end procedure