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 |
How does C++ help with the tradeoff of safety vs. usability?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is the use of the function in c?
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.
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
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
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }
#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What are global variables?
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