- 3

What's the importance of void main of in c++

21st Mar 2022, 3:33 PM
AHAMED MIRZAN
2 Answers
0
Read lesson 1 of the c++ course again.
21st Mar 2022, 3:54 PM
Lisa
Lisa - avatar
0
You can use int main instead of void - void simply means that main function does not return anything, in int main case you need to return something - or return 0;
21st Mar 2022, 4:12 PM
ê§àŒ’â˜ŹBad☏Boyâ˜ŹàŒ’ê§‚
ê§àŒ’â˜ŹBad☏Boyâ˜ŹàŒ’ê§‚ - avatar