+ 1

Hi , this is teja.. Do we can use void main () in C++??

19th Jun 2017, 12:56 PM
dharma
dharma - avatar
3 Antworten
+ 7
No, we cannot. For probably the fifth time in this month, main() must return int in C++.
19th Jun 2017, 1:53 PM
Hatsy Rei
Hatsy Rei - avatar
0
Yes, we can.
19th Jun 2017, 1:23 PM
Adithya Kishor
Adithya Kishor - avatar
0
If you refer to the book by cdit, you can see that we can use void main
7th Jul 2017, 1:50 PM
Adithya Kishor
Adithya Kishor - avatar