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 are called c variables?
which is the best antivirus and how to update it
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }
What are the basic data types associated with c?
what is ur strangth & weekness
0 Answers Cognizant, LG Soft, NetEnrich,
const char * char * const What is the differnce between the above tow?.
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
prog for 1st five prime numbers in 2^x - 1
If we have an array of Interger values, find out a sub array which has a maximum value of the array and start and end positions of the array..The sub array must be contiguious. Take the start add to be 4000. For Ex if we have an array arr[] = {-1,-2,-5,9,4,3,-6,8,7,6,5,-3} here the sub array of max would be {8,7,6,5} coz the sum of max contiguous array is 8+7+6+5 = 26.The start and end position is 4014(8) and 4020(5).
5 Answers Microsoft, Motorola,
Is double link list a linear data structure? If Yes, Why?If No, Why?