Examveda

What will the code display on compiling?
void funccall() 
{ 
   printf("this is funccall\n"); 
}  
void main () 
{   
    atexit(funccall); 
    printf("program starts\n");  
    printf("program ends\n");  
}

A. program starts
this is funccall
program ends

B. this is funccall
program starts
program ends

C. program starts
program ends
this is funccall

D. error

Answer: Option C


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions