2.And In my book I've red that with return you can restore the cotrol from a function to the main() function. This means that it works like "break;"
Return will give control back to whichever function... called the function... that called it (I'm a terrible writer). It won't necessarily return to main(). For example.
Code:
#include <stdio.h>
int function1();
int function2();
int main() {
function1();
return 0; // ends program
}
int function1() {
function2();
return 0; // returns control to main
}
int function2() {
printf("hello word\n");
return 0; // returns control to function1
}