• + 0 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];
    }