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

what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }

1 Answers  


Can we assign integer value to char in c?

0 Answers  


What is a nested formula?

0 Answers  


DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

2 Answers   Wipro,


Tell me a C program to display the following Output? 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5

3 Answers  






What does & mean in scanf?

0 Answers  


What is the significance of an algorithm to C programming?

0 Answers  


How can I access a memory located at certain address?

2 Answers   CSC,


What is string concatenation in c?

0 Answers  


Tell me when is a void pointer used?

0 Answers  


What is #ifdef ? What is its application?

0 Answers   TCS,


What is break statement?

0 Answers  


Categories