All functions should return a value as per the general syntax.
However, in case, if we don't want a function to return any value, we use “void” to indicate that. This means that we use “void” to indicate that the function has no return value or it returns “void”.
Example:
void myfunc()
{
Cout<<”Hello,This is my function!!”;
}
int main()
{
myfunc();
return 0;
}