search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
1.4k views
asked Expert 11.4k points 14 22 28

1 Answer

0 votes
No. The exit() function is used to exit your program and return control to the operating system. The return statement is used to return from a function and return control to the calling function. If you issue a return from the main() function, you are essentially returning control to the calling function, which is the operating system. In this case, the return statement and exit() function are similar.
answered Expert 15k points 15 23 30

Related questions

0 votes
1 answer 372 views
372 views
asked sara Guru 24.6k points 29 52 81
0 votes
1 answer 17 views
17 views
asked augustaina Sr Member 4.8k points 10 25 31
0 votes
1 answer 119 views
0 votes
2 answers 48 views
48 views
asked smith Geek 15.3k points 16 41 63
0 votes
1 answer 1K views
1K views
What is the return value from printf() function?
asked carlton Sr Member 4k points 5 11 21
...