0

What is the output of the following C++ program?

[gamipress_button type=”submit”  label=”Run Code Online” onclick=”window.open(‘https://coderseditor.com’,’_blank’)”]


#include<iostream>
using namespace std;
int main()
{
    int x = 1 , y = 1, z = 1;
  
    cout << (++x || ++y && ++z ) << endl;  
  
    cout << x << " " << y << " " << z ;          
  
    return 0;
}

 

Studently Changed status to publish October 11, 2022