main return type is int, why

I am using lpc1317, cortex M3.

I have seen main has return type of int. But main don't return anything. Shouldn't it be void.
In TC/TC++ or OS based software, main can return, but how in MCU.

Or it is just for compatibility.

Parents Reply Children
No data
More questions in this forum