Why don't we use void main and iostream.h | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why don't we use void main and iostream.h

25th Nov 2017, 2:35 AM
Kishan Patil
Kishan Patil - avatar
2 Answers
+ 5
You can use void main if your compiler has an extension to allow it, but it's not standard... we don't use iostream.h because it's deprecated and no longer supported
25th Nov 2017, 2:40 AM
aklex
aklex - avatar