why in Keil compiler we define the main as int rather that void ?
int main (void)
rather than ....
void main (void) ,like in C51
HI,, I agree that is a strict ANSI. But when devoloping code for 8051 we dont use int main. why? what is the deifference?
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 :)
Please if u know the answer say it, rather than waisting ur time saying rubish......
LOL. Having a bad day?
"But when devoloping code for 8051 we dont use int main. why?"
Because C51 isn't strict ANSI/ISO.
"what is the deifference?"
It should be obvious by now; one is strict ANSI/ISO and the other is not.