what does exit() do?

Answers were Sorted based on User's Feedback



what does exit() do?..

Answer / shruti

nopes,
it does not come out of the executing prog normally..
for that, we have to explicitly mention as
exit(0);

Is This Answer Correct ?    7 Yes 0 No

what does exit() do?..

Answer / guest

come out of executing programme.

Is This Answer Correct ?    3 Yes 1 No

what does exit() do?..

Answer / ramesh

it comes out of execution normally.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

what is diff b/w huge & far & near pointer??

1 Answers   HCL,


What does %d do in c?

0 Answers  


Explain how can you tell whether a program was compiled using c versus c++?

0 Answers  


Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?

1 Answers  


Explain how can I write functions that take a variable number of arguments?

0 Answers  






#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?

1 Answers  


Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”

5 Answers   Mind Tree,


What are the different types of errors?

0 Answers  


can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance

1 Answers   IBM,


#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

6 Answers   ME,


Why can't we initialise member variable of a strucutre

1 Answers  


void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?

2 Answers   TCS,


Categories