What will be the output of the following C code?
int main ()
{
printf("starting of program\n");
printf("program exits\n");
exit(0);
printf("program ends\n");
return(0);
}
Answer: B
void exit(int status) function is used to terminate the calling process immediately.