Output problem: #include<iostream> using namespace std; int main(){ int i=1,j=1,k=1; cout<<++i || ++j && ++k; cout<<i<<j<<k; return 0; }

Output problem:

#include<iostream>
using namespace std;
int main(){
    int i=1,j=1,k=1;
    cout<<++i || ++j && ++k;
    cout<<i<<j<<k;
    return 0;
}

From the BREB Assistant Programmer February 2023 – Written exam, question 5 of 7.

More from this paper