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

How does C++ help with the tradeoff of safety vs. usability?

1 Answers  


Which control loop is recommended if you have to execute set of statements for fixed number of times?

0 Answers  


What is the use of the function in c?

0 Answers  


Write a C program to get the desired output. 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 . . . 1 n..............n 1 Note: n is a positive integer entered by the user.

4 Answers  


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

0 Answers  






write a program for size of a data type without using sizeof() operator?

22 Answers   HCL, IBM,


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

0 Answers  


main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }

2 Answers  


#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }

9 Answers   TCS,


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

0 Answers  


What are global variables?

0 Answers  


4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } a)Comp error b)4425 c)4253 d)3435 e)none

10 Answers  


Categories