Beruflich Dokumente
Kultur Dokumente
wchar_t 2 or 4 0 to 65,535
Operator in any computer language works like a command or statement to tell the computer that what kind of action is required to be
performed. The data on which action is performed by the operators is called operands. Some operators work on single operand and
are called unary operators. Most of the operators need two operands to work on and are called binary operators. There is only one
ternary operator in C++ which needs three operands.
Arithmetic Operators
All the arithmetic operators are binary operators having two operands. They arithmetically calculate a value and return the result.
Relational Operators
All the relational operators are binary operators having two operands. They compare the numeric value at the left hand side with the
value at the right hand side and return true or false. In C++, 0 is represented as false and any non-zero value is considered as true
but usually 1 is used as true.
a>b
Less than or equal if a=15 and b=22 then the result of above expression is 1
to Checks whether the value at left hand side is (true)
less than or equal to the value at the right hand
side or not.
a>=b
>=
a==b
==