who will call your main function in c under linux?

Answers were Sorted based on User's Feedback



who will call your main function in c under linux?..

Answer / 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

who will call your main function in c under linux?..

Answer / valli

_start will call the main function in c under linux

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More C Interview Questions

Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

0 Answers   Amazon,


What is structure and union in c?

0 Answers  


What are types of structure?

0 Answers  


Program to write some contents into a file using file operations with proper error messages.

2 Answers  


what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

7 Answers   Cadence, JNTU, Zen Technologies,






why do some people write if(0 == x) instead of if(x == 0)?

0 Answers  


What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }

1 Answers   Google,


What is a structural principle?

0 Answers  


What is extern c used for?

0 Answers  


Where local variables are stored in c?

0 Answers  


write a program which counts a product of array elements lower than 10.

1 Answers  


write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR

5 Answers  


Categories