When I use void main(){ instead of int main() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When I use void main(){ instead of int main()

15th Oct 2020, 4:59 AM
Nafis Sadiq Bhuyan
Nafis Sadiq Bhuyan - avatar
6 Answers
+ 2
Thanks 😘 u all
15th Oct 2020, 6:06 AM
Nafis Sadiq Bhuyan
Nafis Sadiq Bhuyan - avatar
+ 1
But why lastsecond956?
17th Oct 2020, 7:19 AM
Nafis Sadiq Bhuyan
Nafis Sadiq Bhuyan - avatar
+ 1
thanks
17th Oct 2020, 8:12 AM
Nafis Sadiq Bhuyan
Nafis Sadiq Bhuyan - avatar
0
When you don't have to return anything from the function.
15th Oct 2020, 5:02 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
Ashish Kumar You are misleading...
17th Oct 2020, 2:44 AM
LastSecond959
LastSecond959 - avatar
0
MD.Nafis Sadiq Bhuyan You can read Coder Kitten's answer and if you're curious, take a look here https://www.quora.com/Why-is-it-wrong-to-use-void-main
17th Oct 2020, 8:07 AM
LastSecond959
LastSecond959 - avatar