Answer Posted / ravi joshi
As many of them have answered here, main is a special
function in C/C++ programs. The compiler does not care if
you have defined main or not, but linker does. If linker
finds main defined in the objects being linked, then the
address of main function is placed at the top of execution
stack. And automatically when loader loads the
program/process, the main function gets loaded at the top of
execution stack, and system starts execution using
__crtmain() which internally calls main() of the program/process
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
Explain the difference between the local variable and global variable in c?
Why isnt any of this standardized in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
How can I read/write structures from/to data files?
What is header file definition?
What are the standard predefined macros?
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
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What are shell structures used for?
Give the rules for variable declaration?
Tell me what is the purpose of 'register' keyword in c language?
Write the syntax and purpose of a switch statement in C.
Can you please explain the difference between strcpy() and memcpy() function?
What is the symbol indicated the c-preprocessor?
What does c in a circle mean?