Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
void is a data type like int, float,... but it can't hold any values. Means if any method declared void as return type then it won't return any value. Whereas main is the function in c++, which will be the entry point to your program.
19th Oct 2016, 10:03 AM
Venkatesh(Venki)
Venkatesh(Venki) - avatar