You are viewing a single comment's thread. Return to all comments →
//reverversing without third variable
for (int i=0; i
arr[num-i-1]=arr[i]-arr[num-1-i]; arr[i]=arr[i]-arr[num-1-i]; }
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 →
//reverversing without third variable
for (int i=0; i