- difference between
int main()andint 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,
continueskips the remaining portion of the current iteration and begins the next iteration. If acontinuestatement is inside a nested loop, it affects only the inner loop that contains the statement. -
In a loop,
breakterminates the loop that contains it. If abreakstatement is inside a nested loop, it affects only the current loop that contains it.