Why in c language in some program use int instead of void whereas in program we use void | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why in c language in some program use int instead of void whereas in program we use void

12th Jul 2019, 3:08 PM
Ritik Gupta
Ritik Gupta - avatar
3 Answers
+ 4
do you mean with main, the latest version of C which is C11 do not allow void but only int
12th Jul 2019, 5:36 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
Some obsolete Windows compiler's are the only ones that ever allowed void because Windows didn't want the return code. Most compilers have always only supported int.
14th Jul 2019, 3:36 AM
John Wells
John Wells - avatar
0
Thanks
12th Jul 2019, 6:14 PM
Ritik Gupta
Ritik Gupta - avatar