+ 1

Cant we write char main() {}

int main() { return 0.; } void main() { } similarly for char main()

17th Oct 2018, 7:18 AM
Dhananjay
Dhananjay - avatar
2 Antworten
+ 1
Yes you can, and then you must return a char at the end. like, return 'a';
17th Oct 2018, 8:10 AM
Vedant Bang
Vedant Bang - avatar
+ 1
pls give me an example
17th Oct 2018, 2:33 PM
Dhananjay
Dhananjay - avatar