Relational operators in C++ are used to compare two values or variables and return a Boolean value (true or false) based on the result of the comparison. The commonly used relational operators in C++ are:
== (equal to): returns true if the values or variables being compared are equal
!= (not equal to): returns true if the values or variables being compared are not equal
Angle Bracket (less than): returns true if the left operand is less than the right operand
(greater than): returns true if the left operand is greater than the right operand
Angle Bracket = (less than or equal to): returns true if the left operand is less than or equal to the right operand
= (greater than or equal to): returns true if the left operand is greater than or equal to the right operand
Logical operators in C++ are used to combine multiple relational expressions and return a Boolean value based on the result of the combination. The commonly used logical operators in C++ are:
&& (logical and): returns true if both the left and right operands are true
|| (logical or): returns true if either the left or right operand is true
! (logical not): returns the opposite Boolean value of the operand it is applied to. #logicaloperators #relationaloperators #C++ programming #professionalengineers
Follow on Instagram: / usama.azam.3192
Linkedin : / usama-azam-ab218922a
facebook: / usama.azam.3192
❤️❤️❤️❤️❤️❤️❤️
If you like this video.
Don`t Forget to subscribe.
Thanx for watching.