Advertisements
Advertisements
Question
How relational operators and logical operators are related to one another?
Advertisements
Solution
Relational operators are used to determining the relationship between their operands. When the relational operators are applied on two operands, the result will be a boolean value 1 or 0 which represents True or False respectively which represents a logical operator.
APPEARS IN
RELATED QUESTIONS
Which of the following operator is an extraction operator in C++?
The following constant is of which type?
032
The following constant is of which type?
04.14
Assume n = 10; what will be result of n++ and --n;?
Describe the differences between keywords and identifiers?
Write about Binary operators used in C++.
Write a short note on the const keyword with an example.
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
Determine which of the following are valid constant? And specify their type.
0.5
What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.
