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

an apple turning brown after being cut is an example of what type of change
why do you think the mass number includes only the number of protons and neutrons?
an example of an adaptation that gives an organism greater access to energy
BRAINLIEST TO THE FIRST ANSWER! 20 POINTS!! ANSWER QUICK!!! When oceanic crust is pulled under continental crust at a convergent plate boundary, what is created
Sundiata What is Djata, sogolon, nare Maghan, gnankouman doua, Sassouma, Balla Fasséké archetypes and the reason why? So give the archetype for each character
A cannon ball at ground level is aimed 30 above the horizontal and is fired with an Initial speed of 125 m/s. How far away from the cannon will the cannonball h
-3x + 1 + 10x = x + 4
A ball is thrown upwards and it’s height h m,at time t s,is given by h=7t-4.9t2.How long does the ball spend more than 1.5m above ground?
How does temperature change with depth in the Earth’s crust?
Mia's new puppy weighed 3 1/5 pounds at 4 weeks old. At 16 weeks old, the puppy weighed 9 1/7 pounds. By what factor did the puppy's weight increaseduring that