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;

Relax

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

The first speech launcelot gives in act 2 scene 2 is written in what
How to solve if sin x=0.76 what is cos x=
Celeste wants to have her hair cut and permed and also go to lunch. She knows she will need $68. The perm cost twice as much as her haircuts and she's $5 for lu
Complete the solution of the equation. find the value of y when equals 2. -3x-8y=10
What does the narrator do to the first cat after it bites him on the hand? in "The Black Cat"
If a=6 and b=5 what is the value of (A2-b2)2
What was the "porfiriato"?
The word which refers to the Church of England is:
How many grams of solute are present in 375 ml of 0.120 m kbr?
In House l, Lichtenstein plays with _____ (what's the blank) A.) the expectations of consumers B.) the idea of space and color C.) the use of outdoors D.) the