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
Explain whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
Tell me how to create a child process in linux?
Explain what is return type of isr?
How do you react to people criticizing your code/documents?
Tell me which parameters decide the size of data type for a processor?
What is a inode?
How does combination of functions reduce memory reuirement in embedded system?
What are the uses of the keyword volatile?
What is an embedded system?
Tell me about some of your hobby projects that you've written in your off time.
Can a pointer be volatile ?
Tell me what type of scheduling is there in rtos?
What is the difference between asynchrony and concurrency?
Explain what is the difference between mutexes and semaphores?
What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?