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 does 3 periods mean in texting?

0 Answers  


In a switch statement, explain what will happen if a break statement is omitted?

0 Answers  


What is 1d array in c?

0 Answers  


What does static variable mean in c?

0 Answers  


what is the similarities between. system call and library function?

1 Answers   Wipro,


What is the real difference between arrays and pointers?

27 Answers   Hexaware, Logic Pro, TCS,


What is pointer & why it is used?

0 Answers  


#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }

7 Answers   HCL,


can i know the source code for reversing a linked list with out using a temporary variable?

6 Answers   Honeywell,


explain what is fifo?

0 Answers  


Explain what are the __date__ and __time__ preprocessor commands?

0 Answers  


What is a class?

3 Answers  


Categories