void reverseCopy(int arr1, int arr2, int size) {for (int i = 0; i < size; i++) {(arr2 + size - 1 - i) = (arr1 + i);}}
int main() {int arr1[] = {1, 2, 3, 4, 5};int arr2[5];
}
void reverseCopy(int arr1, int arr2, int size) {
for (int i = 0; i < size; i++) {
(arr2 + size - 1 - i) = (arr1 + i);
}
}
int main() {
reverseCopy(arr1, arr2, 5);int arr1[] = {1, 2, 3, 4, 5};
int arr2[5];
printf("Original array: ");
for (int i = 0; i < 5; i++) {
printf("%d ", arr1[i]);
}
printf("\nReversed array: ");
for (int i = 0; i < 5; i++) {
printf("%d ", arr2[i]);
}
return 0;
}