C++ TutorialLesson 10Free preview
C++ Operators
This lesson is part of C++ · All levels
Summary
This lesson discusses operators in C++, which are symbols that manipulate operand values such as arithmetic, comparison, and logic. You'll learn the operator's rule of priority so that complex expressions yield the correct value. The operator's understanding is also key to writing accurate conditions and calculations.
Key points
- Arithmetic operators: +, -, *, /, and % for the remainder of the part.
- Dividing two integers gives the integers (division is discarded).
- Comparison operator: ==,!=, <, >, <=, >= which results in true/false.
- Logical operators: && (AND), and! (NOT).
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.