You are viewing a single comment's thread. Return to all comments →
for( int i =0, j=num-1; i<j; i++, j-- ){ int valtemp =arr[i]; arr[i]=arr[j]; arr[j]= valtemp; }
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 →