You are viewing a single comment's thread. Return to all comments →
/* Write the logic to reverse the array. */ int temp; for (i = 0; i < num / 2; i++) { temp = (int) *(arr + num - i - 1); *(arr + num - i - 1) = *(arr + i); *(arr + i) = temp; }
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 →