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 |
How can you ensure that debugging a program while it's being used will not affect its functionality?
What software configuration management tools are you familiar working with?
What type of scheduling is there in rtos?
How does the interrupt architecture works?
Explain the significance of watchdog timer in embedded systems?
Explain the uses of timers in embedded system?
Explain what is the difference between mutexes and semaphores?
What is spin lock?
What is refactoring? Name three common refactorings.
Name three primary attributes of object-oriented design. Describe what they mean and why they're important.
Explain how does combination of functions reduce memory requirements in embedded systems?
What is solid?