CI
C++ Certified Associate Programmer
219 Questions
Question No. 1
What happens when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
int main() {
int i, j;
for(i = 0; i < 2; i++) {
for(j = i; j < i + 1; j++)
if(j == i)
continue;
else
break;
}
cout << j;
return 0;
}
Choose the correct option from the given list.
01 / 219