youeabelleLoverso youeabelleLoverso
  • 03-11-2016
  • Mathematics
contestada

What is y after the following statement is executed? x = 0; y = (x > 0) ? 10 : -10;?

Respuesta :

kingburrito
kingburrito kingburrito
  • 03-11-2016
Ahh, i can see youre doing some programming.  In C++ this output is -10
So -10
Answer Link

Otras preguntas

A triangle is drawn on a coordinate plane. Point A is at (2,6), Point B is at (4,10), and Point C is at (8,5). What is the midpoint of side AB?
which letter a b c or d represents respiration photosynthesis​
Jay says that this graph represents a proportional relationship. Is he correct? Explain.
Travelwell manufactures and sells luggage and briefcases. Their marketing research indicates that durability is the attribute that consumers most desire in thei
Perform the indicated operation (25m2 - 20m + 4) ÷ (5m - 2)
A Chinese supporter of the Boxer Rebellion would most likely agree with which statement?
A boat is moving along the water. The forward thrust from the engines is 35,000 N. Water resistance is 20,000 N and air resistance 10,000 N. What is the resulta
Which is a reason that "Doc Rabbit, Bruh Fox, and Tar Baby” from The People Could Fly is considered a fable?
Read the prompt. Then, choose the option with the correct demonstrative adjective. You used to climb the tree over there, not the one right next to you, nor tha
In a perfectly competitive market, an orange costs $2. If Farmer Joe sells 10 oranges, what is his total revenue? If he decides to sell 1 more orange, what will