Ask Question

In 1-2 sentences describe the purpose of comparison operators and give an example.

+5
Answers (1)
  1. 10 April, 03:30
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “In 1-2 sentences describe the purpose of comparison operators and give an example. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers