The void function provides a way of emulating PASCAL type procedures.
If you do not want to return a value you must use the return type void and miss out the return statement:
void squares()
{int loop;
for(loop=1;loop<10;lopp++);
printf("%d\n",loop*loop);
}
This void function would be called such as:
main()
{ squares();
}
NOTE: We must have () even for no parameters unlike some languages.