In 1–2 sentences describe the purpose of comparison operators and give an example.
Answers
Answered by
7
Hey mate here's the answer..
Comparison operators are used to compare between objects!
are they equal? is one greater than the other?
if (a == b) ++a;
if (a > b) a = b;
for example when we use a sort function, comparison operators are used inside the function.
Comparison operators are used to compare between objects!
are they equal? is one greater than the other?
if (a == b) ++a;
if (a > b) a = b;
for example when we use a sort function, comparison operators are used inside the function.
Answered by
0
Answer:
ythis fsdlkfj
Explanation:
sdafsgojgsdiof
Similar questions