You are viewing a single comment's thread. Return to all comments →
finally done something on my own `
int main() { int i, j, num; scanf("%d", &num);
// Dynamic memory allocation int *arr = (int *)malloc(num * sizeof(int)); for(i = 0; i < num; i++) { scanf("%d", &arr[i]); } for(j = num - 1; j >= 0; j--) { printf("%d ", arr[j]); } free(arr); return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Array Reversal
You are viewing a single comment's thread. Return to all comments →
finally done something on my own `
include
include
int main() { int i, j, num; scanf("%d", &num);
}