Code For NonGeek
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Use bit operation to do minus of two ints

Go down

Use bit operation to do minus of two ints Empty Use bit operation to do minus of two ints

Post  viterbi Tue Sep 13, 2011 10:06 am

1____int Minus(int a, int b) {
2__________return a+1+(~b);
3____}

viterbi

Posts : 32
Join date : 2011-09-03

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum