JTBourgeois JTBourgeois
  • 30-11-2017
  • Computers and Technology
contestada

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

Respuesta :

steloneplp08uwa steloneplp08uwa
  • 30-11-2017
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.

Answer Link

Otras preguntas

What does a locator globe on a map show?
What region of Spain's European territories rebelled,starting in the 1560's?
sasha bought three pens malachi bought one how much more money did sasha spend then malachi
Fill in the table and then round to the given place 4.3 hundredths tenths ones
what part of speech is the word stronger
Which philosopher is credited with introducing the concepts of reason and logic?
owl monkey sleep during the day waking about 15minutes after sundown to find food.At midnight,they rest for an hour or two,then continue to feed until sunrise.T
The expiration date on a product refers to the last date a product should be __________.
25 tens equals how many hundreds
How does Boucher differ from advocates of independence in his understanding of freedom?