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

Free 100 ponits okay thank you
which statement best describes how organisms use dna and amino acids to synthezsise a protein
Rock musician Donny West is paid 15% on his tour video online sales. Last year fans downloaded his songs 991,000 times, and he also sold 550,000 videos. The son
determine the value of the variable that makes the equation true 12 - b = 12.5
Generating context specific definitions handout 3.5
if you have 4 2/3 and you cut into 2/5 how many 2/5 would it take
Porque los líderes españoles en California convertían a los indígenas al cristianismo
N2 H2 = NH3. do you feel that this equation is currently following the law of conservation of mass?
Which new innovation allowed the Persians to effectively govern their massive empire? A. Divine Right Theory B. Development of Imperial Bureaucracy C. Establish
How’s the Aztecs manage conflict within their empire and other nations?