Actually, as it stands, there will be no output. If you click on the little "cog wheel" icon at the top right corner of the code below you can see for yourself!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream>
usingnamespace std;
int main() {
cout << "begin main()\n";
int x = 0;
int i;
for (i = 0; i < 4; i++) ;
x++;
if (x == 3)
cout << "*";
cout << "end main()\n";
return 0;
}
You could even add a few more output lines to help you follow the program flow?