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

what is the output of printf("%d",(scanf("%d",10));

10 Answers  


while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?

4 Answers   Aptech,


how can you print&scan anything using just one character? :) HINT: printf,scanf similer

2 Answers  


2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }

1 Answers   Wipro,


how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y

4 Answers   TCS,






What is ## preprocessor operator in c?

0 Answers  


How can I increase the allowable number of simultaneously open files?

1 Answers   CSC,


Explain how are portions of a program disabled in demo versions?

0 Answers  


What is structure of c program?

0 Answers  


How to reverse a linked list

1 Answers   Aricent, Fidelity, IBM, TCS,


Why doesnt the call scanf work?

0 Answers  


Is javascript based on c?

0 Answers  


Categories