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