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

Are pointers integer?

0 Answers  


Explain the Difference between the New and Malloc keyword.

0 Answers   InterGraph,


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?

1 Answers   Hathway,


Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?

3 Answers   HCL, TCS,


Given a string write a program to print all alphabetical characters in the order of their occurance first,followed by the sum of the numeric characters then followed by the special characters in the order of their occurance.

1 Answers   College School Exams Tests, Wipro,






explain what are actual arguments?

0 Answers  


How to set file pointer to beginning c?

0 Answers  


Write a program for Overriding.

0 Answers  


from which concept of 'c', the static member function of 'c++' has came?

1 Answers   Bosch,


what is C?

9 Answers   Syntel,


Is reference used in C?

1 Answers  


What is operator promotion?

0 Answers  


Categories