πŸ“Š C++
Q. How many times will the print statement be executed?
Code:
main(){
  int i = 0;
  label:
  cout << “MCQBuddy;
  i++;
  if(i < 3){
    goto label;
  }
}
  • (A) 1 time
  • (B) 2 times
  • (C) 3 times
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 3 times

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
806
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Brijesh Goswami
Publisher
πŸ“ˆ
89%
Success Rate