















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















Mr. Saif ur Rehman Khan MS (Data Science, and Computer Science) BS (Computer Science) Honors: Certified Android Developer, Research Assistant E-Mail: [email protected]
Object Oriented of Programming
Operators
Operators in C++
An expression containing logical operator returns either 0 or 1 depending upon whether expression results true or false. Logical operators are commonly used in decision making in C++ programming.
&& Logical AND. True only if all operands are true || Logical OR. True only if either one operands are true ! Logical NOT. True only if the operands is 0
Special Operators
Bitwise Operators During computation, mathematical operations like: addition, subtraction, and division are converted to bit-level which makes processing faster and saves power.
& Bitwise AND | Bitwise OR ^ Bitwise exclusive OR ~ Bitwise Complement << Shift left
Shift right