0

What is void main()

31st Mar 2017, 5:39 AM
aryan sharma
aryan sharma - avatar
4 odpowiedzi
+ 19
void main() is the deprecated version of int main(). This is the entrance of your program when it begins to run.
31st Mar 2017, 5:42 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
void main () is the older version of c++ starting, it returned void, that's why it's called as a void. Newer cpp versions use int main () it's the function the program runs at first
31st Mar 2017, 5:42 AM
David Najafi
David Najafi - avatar
0
it is a function in c++
31st Mar 2017, 6:28 AM
shalini mahajan
shalini mahajan - avatar