返回首页
EN
H7 / SECURITY RESEARCH NOTES

第7章 C控制语句:分支和跳转

  • difference between int main() and int main(void)
# Reference Link
https://stackoverflow.com/questions/12225171/difference-between-int-main-and-int-mainvoid

My Comprehension: 
c++: there is no difference;
c: this is questionable, may be main(void) means the function has't parameters;
  • continue在循环中为跳出本次迭代剩余部分,并开始下一轮迭代。如果continue语句在嵌套循环内,只影响包含该语句的内层循环。

  • break在循环中会终止包含它的循环。如果break语句在嵌套循环内,只影响包含它的当前循环。