In: Computer Science
Write a user defined function named “findTwosComplement” in C++,
which will find 2’s complement of a signed number. Input must be
passed by reference to the function and it will return the answer.
There is no need to call this function anywhere.
You can use following operators only:
<<>> ~ & ^ |
Decimal