L
lovecreatesbeauty
Hello experts,
Is the following code snippet legal? If it is, how can exit() do the
keyword return a favor and give a return value to the main function?
Can a function call (or only this exit(n)) statement provide both
function call and return features of the C programming language?
/* headers omitted */
int main (void)
{
exit(0); /* instead of `return 0;' */
}
Sincerely,
lovecreatesbeauty
Is the following code snippet legal? If it is, how can exit() do the
keyword return a favor and give a return value to the main function?
Can a function call (or only this exit(n)) statement provide both
function call and return features of the C programming language?
/* headers omitted */
int main (void)
{
exit(0); /* instead of `return 0;' */
}
Sincerely,
lovecreatesbeauty