hi,
according to the standard the signature of main() is either int main(void) or int main(int argc, char **argv).
However, it works even if it is given as void main().
When does this make a difference? I mean, in an environment where the process return a value to the OS,the integer returned serves as an error checking mechanism.
Can you please in terms of an embedded system, as to where the value is returned, if given as int main() and, is giving void main() a mistake?
according to the standard the signature of main() is either int main(void) or int main(int argc, char **argv).
However, it works even if it is given as void main().
When does this make a difference? I mean, in an environment where the process return a value to the OS,the integer returned serves as an error checking mechanism.
Can you please in terms of an embedded system, as to where the value is returned, if given as int main() and, is giving void main() a mistake?