This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

main function ?

why in Keil compiler we define the main as int rather that void ?

int main (void)

rather than ....

void main (void) ,like in C51

Parents
  • Why is all compilers a little bit different?

    Maybe because the ARM processor has more RAM and more flash memory?
    Maybe because the ARM compiler has a different development history?
    Maybe because someone just took a decision?

    There are way more important differences when moving from one embedded environment to another than if main() is declared void or int :)

Reply
  • Why is all compilers a little bit different?

    Maybe because the ARM processor has more RAM and more flash memory?
    Maybe because the ARM compiler has a different development history?
    Maybe because someone just took a decision?

    There are way more important differences when moving from one embedded environment to another than if main() is declared void or int :)

Children