The return data-type of a function,whose prototype is declared in main(), is void.
It cointains an instruction return; as in
main()
{
void create(int *p);
*some code*
}
void create(node *list)
{
*some code*
return;
}
What will it return,and where will it return??
It’s not going to return anything, you might have return statements in a void function to kind of alter the flow and exit from the function. ie rather than:
you might have: