Updating the 2 nd pointer
else { arr [ st ] = arr [ i ] ; st ++ ; } } Console . Write ( " { " ) ; for ( int i = 0 ; i < st ; i ++ ) { Console . Write ( arr [ i ] ) ; if ( i != st - 1 ) Console . Write ( " , ▁ " ) ; } Console . Write ( " } " ) ; }