saslop24 saslop24
  • 22-03-2021
  • Computers and Technology
contestada

Given that, x = 2, y = 1, and z = 0, what will the following cout statement display?

cout << "answer = " << (x || !y && z) << endl;

Respuesta :

qgtdtq
qgtdtq qgtdtq
  • 22-03-2021

Answer:

This will return 1

Code:

#include <iostream>

using namespace std;

int x = 2;

int y = 1;

int z = 0;

int main() {

   cout << (x || !y && z) << endl;

   return 0;

}

Answer Link

Otras preguntas

what was a major problem with the central government under the articles of confederation a) the central government could collect unlimited taxes from the people
What is the answer to (x+6)(x-4)
A box in a college bookstore contains books, and each book in the box is a history book, an English book or a science bok. If 1/3 of these books are history boo
is 15/28 greater or less than 1/2? justify the answer
In which of the following regions did General MacArthur lead American forces in World War II? a. Korean front b. European front c. Pacific front
The gcf of any two even numbers is always even true or false
American car makers produce 5650000 cars each year .in a report ben wrote that americans made 65*0000 cars. What mistake did ben make ? How can he fix it?
what does army corp mean
Jake and Seth put some money into their money boxes every week. The amount of money (y), in dollars, in their money boxes after a certain amount of time (x), in
How to write 309,099,990 in word