text: Subtract 1 without arithmetic operators | Driver program to test above functions
code: #include <stdio.h> NEW_LINE int subtractOne ( int x ) { return ( ( x << 1 ) + ( ~ x ) ) ; } int main ( ) { printf ( " % d " , subtractOne ( 13 ) ) ; return 0 ; }