What is the default value (mind you, not the datatype) returned by a function in cpp if I don’t return a value explicitly?
For eg:
int func(int n)
{
n=2*n;
}
int main()
{
func(3);
return 0;
}
In this case the value returned by func() to main().