function to find the number 's complement
void complement ( int a [ ] , int n ) { int i ; int x [ 8 ] = { 0 } ; x [ 0 ] = 1 ; for ( i = 0 ; i < n ; i ++ ) { a [ i ] = ( a [ i ] + 1 ) % 2 ; } add ( a , x , n ) ; }