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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are recursive functions? Can we make them in line?

488


If a system goes blank, how do you debug it?

1393


Explain me why is model transformations used in the embedded system?

454


How does combination of functions reduce memory requirements in embedded systems?

528


Tell me can a variable be both const and volatile?

479






What is interaction semantics used in embedded systems?

466


Whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?

455


What is difference between binary semaphore and mutex?

462


What is the order of calling for the constructors and destructors in case of objects of inherited classes?

475


How to implement a fourth order butter worth lp filter at 1 khz if sampling freuency is 8 khz?

484


What's the difference between asynchrony and concurrency?

441


Explain what is size of character, integer, integer pointer, character pointer?

492


Tell me what is interrupt latency?

437


What is dma in an embedded system?

450


What is equ?

501