Can break statement be used without any loop?

1 answer

Answer

1033988

2026-08-18 16:05

+ Follow

The Break statement should generally get executed in some loop or switch statement.

The below code will give compiler error.

void main()

{

printf("12");

break;

printf("14");

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.