Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
c
« Previous
Next »
Exit() is same as return?
Options
- Yes
- No
CORRECT ANSWER : No
Discussion Board
exit and return
-No, exit function not same as a return.
-exit() function used to exit from program & return control to the operating system.
-The return statement is used to return from function & control return to the calling function.
-In case, if we return from main() function, then we are returning control to the calling function, i.e the operating system. In this case the return & exit statements are same.
Sapna 02-14-2017 06:38 AM
Exit() and Return()
Answer : no.
The return function is an instruction of the language that returns from a function call &
The exit function is a system call (not a language statement) that terminates the current process.
Jayesh Sonar 02-24-2015 03:55 AM
exit() function
The function exit() terminates the process that
calls the exit.
Aparna 07-5-2013 03:32 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
C test (42)
C (12)
C++ for beginners (10)
C++ (20)
C++ (24)
C++ (18)
C++ (14)
C++ (12)
C++ (15)
C++ (15)
Data structure (20)
Data structure (10)
Data structure (10)
Data structure (10)
PERL (25)
VC++ (11)
Oops (30)
Mainframe (41)
Mainframe (15)
Embedded systems (15)
OOAD (49)
Advertisement
▲