Q. How many times will the print statement be executed?
Code:main(){
int i = 0;
label:
cout << “MCQBuddy;
i++;
if(i < 3){
goto label;
}
}
β
Correct Answer: (C)
3 times
main(){
int i = 0;
label:
cout << “MCQBuddy;
i++;
if(i < 3){
goto label;
}
}
You must be Logged in to update hint/solution