Hi Guru here.......my question is....... Is it necessary to
start the execution of a program from the main() in C?
Answers were Sorted based on User's Feedback
Answer / kumar
we can execute the program without main() also,but according
to the standardization of 'c' we must write the main
function.main is called as start-up function......during
compilation there will be a _start function by which the
execution starts.this _start calls main,after main execution
it returns to the _start function then it starts the
execution of the remaining code............
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / ian
"Normally you are at liberty to give functions whatever
names you like, but ``main'' is special - your program
begins executing at the beginning of main. This means that
every program must have a main somewhere." Kernighan &
Ritchie - The C Programming Language 2ed. p.6
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / shreepad
Most new toolchains allow you to configure the entry point
other than main(). hence unless other wise specified, main
is the default entry point.
| Is This Answer Correct ? | 3 Yes | 0 No |
Why does pre-emptive multi-threading used to solve the central controller problem?
Describe, in as much detail as you think is relevant, as deeply as you can, what happens when I type "cnn.com" into a browser and press "go".
Why embedded system is useful?
Significance of watchdog timer in embedded systems.
Implement a <basic data structure> using <some language> on <paper|whiteboard|notepad>.
What are the different types of embedded systems?
What is the scope of a function that is declared as static?
What are the uses of the keyword volatile?
What is interrupt latency? How can you reduce it?
Hi Guru here.......my question is....... Is it necessary to start the execution of a program from the main() in C?
Tell me how does input/output bus functions?
What software configuration management tools are you familiar working with?