Wikipedia defines return statement as:
In computer programming, a return statement causes execution to leave the current subroutine and resume at the point the subroutine was called -- known as its return address.
Now there's a C program I have coded---->
Expand|Select|Wrap|Line Numbers
- #include <stdio.h>
- void func(void)
- {
- printf("HELLO in func()");
- getch();
- }
- int main(void)
- {
- printf("HELLO 1 main()\n\n");
- atexit(func);
- printf("HELLO 2 main()\n\n");
- getch();
- return 0;
- }
I'm confused. Please tell me where am I wrong.
THANKS IN ADVANCE...............