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
What does the message "automatic aggregate intialization is an ansi feature" mean?
Can we declare variables anywhere in c?
Why c is called procedure oriented language?
I need testPalindrome and removeSpace
#include
What is memory leak in c?
When should the volatile modifier be used?
What is s or c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Difference between pass by reference and pass by value?
What is a static variable in c?
What is the advantage of a random access file?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What does *p++ do? What does it point to?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.