How many times will the print statement be executed?

main()
{
 int i = 0; 
label:
 cout << 的nterviewbit;
 i++; 
if(i < 3)
{
 goto label; 
}
 }

A. 1 time

B. 2 times

C. 3 times

D. Error
 
Ans: c. 3 times


Posted on by