OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » C++ Quiz

Which bitwise operator is used to flip the bits (change 1s to 0s and vice versa) of a binary number? 

Difficulty level
  • & 
  • | 
  • ^ 
  • ~
The ~ operator is the bitwise NOT operator in C++. It inverts each bit of a number, changing 1s to 0s and 0s to 1s. & is the bitwise AND, | is the bitwise OR, and ^ is the bitwise XOR operator.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
C++ Quiz
Quiz
How does the goto statement alter the flow of control in a C++ program? 
What is the primary purpose of a constructor in a class? 

Related Quiz

  • Which file opening mode in C++ will allow you to append data at the end of the file’s content? 
  • The keyword _______ is used to specify that a function should be compiled inline. 
  • How does the C++ compiler handle tail-recursive functions? 
  • Which function is used to get the position of the file pointer in a file? 
  • Which of the following is not a legitimate reason to use function templates? 

Leave a commentCancel

Your email address will not be published. Required fields are marked *

Hot Quiz

Python QuizPHP QuizServlet QuizData Analyst QuizAppium QuizSpring Boot QuizADO.NET QuizAPI Testing QuizNode.js QuizDatabase Testing QuizAWS Lambda QuizAutomation Testing QuizData Science Statistics QuizWeb Services QuizSoftware Testing QuizC Language QuizR Programming QuizC++ QuizBootstrap QuizAlgorithm Quiz
Copyright © 2024 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy