Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int operand1 = 0, operand2 = 0;
- int result;
- operand1 = 0x01; // [0000 0001]
- result = ~operand1; // [1111 1110]
- result++; // [1111 1111]
- Console.WriteLine(" ~ {0} + 1 = {1} ", operand1, result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement