Developer community
0 votes
asked by Expert (11.4k points) 14 22 29 | 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 31

Related questions

0 votes
1 answer
asked by sara Guru (24.6k points) 29 51 78 | 374 views
0 votes
1 answer
asked by augustaina Sr Member (4.8k points) 10 23 31 | 17 views
0 votes
1 answer
0 votes
2 answers
asked by smith Geek (15.3k points) 17 40 60 | 56 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


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

3.8k questions

4k answers


10.7k users

3,751 questions
4,046 answers
10,709 users