Developer community
0 votes
1.4k views
asked by Expert (11.4k points) 16 23 32 | 1.4k views

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 by Expert (15k points) 15 23 32

Related questions

0 votes
1 answer
asked by sara Guru (24.6k points) 32 58 93 | 473 views
0 votes
1 answer
asked by augustaina Sr Member (4.8k points) 10 26 32 | 25 views
0 votes
1 answer
0 votes
2 answers
asked by smith Geek (15.3k points) 19 43 69 | 65 views
0 votes
1 answer
asked by carlton Sr Member (4k points) 5 11 21 | 1k views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

3,754 questions
4,046 answers
117 comments
10,709 users