0
it's int main() and not void main()
22nd Jul 2022, 4:17 AM
Felix Alcor
Felix Alcor - avatar
0
It is only a warning, not an error, to remind you that main should not be void. Console programs should return an int so shell scripts may report whether the execution was successful. It is conventional that if a program returns 0, then the run was successful, and non-zero means it was unsuccessful.
22nd Jul 2022, 4:23 AM
Brian
Brian - avatar
0
Laukesh singh You Code still works and Like Brian said it's just a reminder. When you don't Like the warning just use int main().
22nd Jul 2022, 4:27 AM
Felix Alcor
Felix Alcor - avatar
0
Laukesh singh When I Run the Code I get the Output "12345678910" and that should be also the right Output by that Code and then behind that's the warning. What's your expected output?
22nd Jul 2022, 4:41 AM
Felix Alcor
Felix Alcor - avatar
0
Change main() function.
23rd Jul 2022, 6:07 AM
PARTH CHAUHAN
PARTH CHAUHAN - avatar