C Program to Reverse Elements of a 1D Array (1D Array के Elements को Reverse करने का C प्रोग्राम)
Reversing an array means changing the order of its elements so that the first element becomes the last and the last element becomes the first. Array को Reverse करने का अर्थ है उसके Elements का क्रम उलट देना। इसमें पहला Element अंतिम स्थान पर और अंतिम Element पहले स्थान पर आ जाता है। C Program #include <stdio.h> #define N 10 int main() { int list[N], i, j, temp; printf("Enter elements of List\n"); for (i = 0; i < N; i++) { printf("%d element = ", i + 1); scanf("%d", &list[i]); } printf("List Array is:\n"); for (i = 0; i < N; i++) { printf("%d ", list[i]); } /* Reverse the array */ for (i = 0, j = N - 1; i < j; i++, j--) { temp = list[i]; list[i] = list[j]; list[j] = temp; } printf("\nReversal of List Array is:\n"); for (i = 0; i < N; i++) { printf("%d ", list[i]); }...