#include <stdio.h>

void resever(int *A,int *B){
    for (int i = 0;i < 5;i++) {
        *(B+i) = *(A + (4-i));
    }
}

int main() {
    int A[5];
    int B[5];

    for (int i = 0;i < 5;i++) {
        scanf("%d",(A+i));
    }

    resever(A,B);
    
    for (int i = 0;i < 5;i++) {
        printf("%d ",*(B+i));
    }   
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: