Why is it giving error in void main? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is it giving error in void main?

if I use int main, then it gives error for return 0;

15th Nov 2016, 1:14 PM
Toshi Kudo
Toshi Kudo - avatar
2 Answers
+ 3
My best guess is that your syntax is off somewhere.
15th Nov 2016, 1:18 PM
Keto Z
Keto Z - avatar
0
Did that already
15th Nov 2016, 1:41 PM
Toshi Kudo
Toshi Kudo - avatar