Back home
中文
H7 / SECURITY RESEARCH NOTES

Chapter 7: C Control Statements: Branching and Jumps

  • 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;
  • In a loop, continue skips the remaining portion of the current iteration and begins the next iteration. If a continue statement is inside a nested loop, it affects only the inner loop that contains the statement.

  • In a loop, break terminates the loop that contains it. If a break statement is inside a nested loop, it affects only the current loop that contains it.