Hi Guru here.......my question is....... Is it necessary to
start the execution of a program from the main() in C?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a volatile be constant? Like

651


Suppose you buy some rtos, what are the features you look for in?

615


Which parameters decide the size of data type for a processor?

656


How to reduce function call overhead in arm based systems

627


Why are interfaces important?

698


What does malloc do? What will happen if we have a statement like malloc(sizeof(0));

682


How does inversion of control relate to dependency injection?

630


What is rtos in an embedded system?

660


What is null pointer and what is its use?

581


What is spin lock?

673


What is size of character, integer, integer pointer, character pointer?

618


Tell me can we put breakpoint inside isr?

679


What is difference between binary semaphore and mutex?

677


Differentiate between mutexes vs semaphores.

671


What happens when recursion functions are declared inline?

648