How to write a C Program Array Example: Reverse in C Programming Language ?
Solution For C Program :
//C Program Array Example: Reverse.
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
int array[1000];
int i;
for( i = 0 ; i < n ; i++ ){
scanf("%d", &array[i]);
}
for( i = n-1 ; i >= 0 ; i-- ){
printf("%d", array[i]);
if( i != 0 ){
printf(" ");
}
}
return 0;
}