what is the return value (status code) of exit() function....
what the arguments(integer value) passed to it means....



what is the return value (status code) of exit() function.... what the arguments(integer value) p..

Answer / arindam majumder

0 if successful and a non-zero value if unsuccessful.
The argument signifies whether the program have
executed successfully or not.
If 0,then it is successful.And a non-zero value indicates
an error.Several type of errors may occur.So a non-zero
value is supplied.Not 1 or 2 or...some specific value.

Is This Answer Correct ?    12 Yes 0 No

Post New Answer

More C Interview Questions

write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com

6 Answers  


Where does the name "C" come from, anyway?

0 Answers   Celstream,


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

0 Answers   TCS,


dynamically allocate memory for linear array of n integers,store some elements in it and find some of them

1 Answers  


write a c program to convert fahrenheit to celsius?

4 Answers   TCS,






Write a c program to build a heap method using Pointer to function and pointer to structure ?

0 Answers   MAHINDRA, Protech, Sivan Tech,


What are qualifiers and modifiers c?

0 Answers  


Explain what does the function toupper() do?

0 Answers  


how can i print "hello"

3 Answers  


Why Modern OS are interrupt driven?Give an example

3 Answers  


how to execute with out main in cprogram

15 Answers   Infosys,


What should malloc() do?

0 Answers  


Categories