0
In C! Did anyone used char main () ?
2 Respostas
+ 5
No, char has never been declared as a return type for main().
As for why only int (or void, as in C in the past, supported by some compilers) have been used as main's return type:
https://softwareengineering.stackexchange.com/questions/203104/why-cant-main-return-a-double-or-string-rather-than-int-or-void
0
Yup! Everyone goes with int or void 😉😉