c++ continue versus break

前端 未结 6 1038
抹茶落季
抹茶落季 2020-12-16 15:02

Which statement will be executed after \"continue\" or \"break\" ?

for(int i = 0; i < count; ++i)
 {
     // statement1                                            


        
6条回答
  •  误落风尘
    2020-12-16 15:37

    continue: ++j and then if j < count then statement2 otherwise statement3

    break: statement3

提交回复
热议问题