My question is if(bool || bool) is the syntax. If first bool is true does the compiler check for the second bool condition? And also is this same for all programming languages out there ?
#include <iostream>
using namespace std;
int main() {
    // Write C++ code here
   
    int i = 2,j = 0;
    
    while(i-- || j++){
        cout << j << " " << i << endl;
    }
        
    return 0;
}
By the way answer for above code is ::
0 1
0 0
