Comparison Operators
Let’s learn about the comparison operator used in C++.
We'll cover the following
As the name implies, conditional statements specify whether another statement or block of statements should be executed or not. These are often called selection constructs. The two general types are:
“if…else”
"switch…case”
Comparison operators
The conditions tested are specified using comparison operators, also called relational operators. These operators cause the immediate statement in which they are contained to return a boolean value of either true
or false
.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy