C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - Yes / No Questions (Q.No. 2)
2.
Bitwise can be used to reverse a sign of a number.
Yes
No
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
16 comments Page 2 of 2.

Chaya said:   1 decade ago
Negetive numbers are reperesented according to the 2's complement method.

That's way @Wikiok is right and @Rafat is wrong.

Nidhinpradeep said:   1 decade ago
MSB only indicates whether it is +ve or -ve. To find its complement we have to use 2's complement.

Ritesh Chandora said:   1 decade ago
@all.

i=~i|1;

~ and | both are bitwise operator and this thing can change the sign.

Crystal said:   1 decade ago
@Sanket.

What is the difference between reversing and changing the sign?

Sanket said:   1 decade ago
Sign can't be reverse, can be change.

Rahul said:   1 decade ago
Answer is wrong we can change sign.


Post your comments here:

Your comments will be displayed after verification.