i know this error is due to missing brace..but my question is how the compiler manipulate this code.........i mean why it does not execute the statement following if and then remaining code cout<<a; in ordinary procedural way.....ple helpCode:#include <iostream> using namespace std; int main() { int a=4; if(a<4) cout<<"a is smaller than 4"; cout<<a; else if(a==4) cout<<"a is equal to 4"; else cout<<"///etc"; }
THANKS.........