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

CONJUGASION!!! 3 Complétez ce mail que Marina écrit à son amie avec les verbes suivants et conjuguez-les si nécessaire : savoir, porter, Inviter, donner, travai
gas which dissolve in ammonia copper(ii) chloride but insoluble in water is
The optic nerves pass through the ----- of the ------- bone.
COMPLETE COM 'A' OU 'AN' A)That IS _____ Book. B) This is _____ hospital. C)That IS _____ egg. D) He is rating _____ Apple. E) This is ____ umbrella. F) That is
Please give this in steps
Given that tan x=5/12, what is the value of sin x + cos x?​
define the concept risk behavior and explain why it is important for teenagers to investigate and be knowledgeable about it
two factors why it is important for youths to investigate and be knowledgeable about risky behavior.​
An object is said to be ____ if it has an imbalance in positive and negative charges. A. Charged B. Neutral C. Massive D. Balanced
(BRAINLIEST FOR BEST ANSWER) Why did the Tea Act anger the colonists? Explain how the tax on tea affected merchants and their customers.