diff --git a/Arrays/Array_reversal.c b/Arrays/Array_reversal.c new file mode 100644 index 00000000..fc07a84c --- /dev/null +++ b/Arrays/Array_reversal.c @@ -0,0 +1,26 @@ +#include +#define N 1000 + +int main(){ + int arr[N]; + + //giving the size of an array + int n; + printf("enter the size of array:\n"); + scanf("%d", &n); + + // Printing the array that will be reversed + printf("Enter the array:\n"); + for(int i=0; i=0; i--){ + printf("%d ", arr[i]); + } + return 0; + + +} \ No newline at end of file