+ 1
How to add two numbers using only bitwise operators, booleans and assignment?
You can only use |, &, ^, <<, >>, ~, |=, &=, ^=, <<=, >>=, &&, ||, !, and = You can create any variable you want.
3 Answers
0
why do you need that? It is pretty much impossible
0
ummmm.....you know u can just put variable++ or ++variable to add
0
well in boolean we can only have two values i.e. 0 or 1.so, you can add then using AND
I guess it will helpđ