who will call your main function in c under linux?
Answers were Sorted based on User's Feedback
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 |
Answer / valli
_start will call the main function in c under linux
Is This Answer Correct ? | 4 Yes | 2 No |
what is the output of printf("%d",(scanf("%d",10));
while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?
how can you print&scan anything using just one character? :) HINT: printf,scanf similer
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); }
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
What is ## preprocessor operator in c?
How can I increase the allowable number of simultaneously open files?
Explain how are portions of a program disabled in demo versions?
What is structure of c program?
How to reverse a linked list
1 Answers Aricent, Fidelity, IBM, TCS,
Why doesnt the call scanf work?
Is javascript based on c?