Question:

How many times does 'Telangana' get printed?
#include int main() 
{ int x; for(x = -1; x <= 10; x++) 
{ if(x < 5) continue; else break; printf("Telangana"); } 
return 0; }

Show Hint

Code after a break or continue is not executed in that loop iteration. Watch the control flow carefully.
Updated On: June 02, 2025
  • 11 times
  • 10 times
  • Zero times
  • Infinite times
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The statement `printf("Telangana");` comes after `break`, so it is never executed. Loop continues while \(x<5\), and for \(x = 5\), `break` is executed before reaching the print.
Was this answer helpful?
0
0

Top Questions on Programming and Data Structures

View More Questions

TS PGECET Notification