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 importance of c in your views?
int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?
what does " calloc" do?
What is variable in c with example?
Apart from dennis ritchie who the other person who contributed in design of c language.
What are the 3 types of structures?
Write a program to find the biggest number of three numbers in c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Can true be a variable name in c?