who will call your main function in c under linux?

Answer Posted / kiransing paradeshi

When the programme is commpiled,in the kernel execl will be
called (execl will replace current process image with new
process image)in the new process strat up routine
ia executed this start up routine is written in C abd assembly.
In this routine exit(main()); function will called,this will
call to main() function.

Kiransing Paradeshi
Software Engineer
SPA Comuters (P) Ltd
Banglore,India
kiransing4u@gmail.com

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2263


What is the purpose of the preprocessor directive error?

887


Can you mix old-style and new-style function syntax?

832


Who is the main contributor in designing the c language after dennis ritchie?

741


Explain what are bus errors, memory faults, and core dumps?

990






What is the difference between new and malloc functions?

762


What is bubble sort in c?

796


Is main is a keyword in c?

809


What is the difference between text and binary i/o?

746


Where static variables are stored in memory in c?

677


What is a example of a variable?

732


What is file in c preprocessor?

847


What is output redirection?

855


List some of the static data structures in C?

936


Lists the benefits of c programming language?

781