return doesnt return anything and return 0 returns 0.
Though this is a void function so it would not return anything anyways so a return statement is pointless.
the void is the return type it can be anything really int , string , vector , blah blah blah...
so say you have something like this
1 2 3 4
int ret_integer()
{
return( 10 );
}
it is returning 10.
so if you did something like
1 2 3 4 5 6 7
#include <iostream>
int main()
{
std::cout << ret_integer() << std::endl;
}
//you would get -> 10