Q. What does the '~' operator do?

  • (A) AND
  • (B) OR
  • (C) XOR
  • (D) Bitwise NOT
πŸ’¬ Discuss
βœ… Correct Answer: (D) Bitwise NOT
Explanation: The ~ (tilde) operator flips all the bits (1 to 0 and 0 to 1).
Explanation by: Mr. Dubey
The ~ (tilde) operator flips all the bits (1 to 0 and 0 to 1).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
71
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate