C Programming

Something which hasn't been mentioned is that syntax structure is extremely important. A signature for a function could be:

<return type> <function name> <(parameters)>

eg:
int myFunc(int _blah)
void myFunc()

If you need to create a function to complete some task, you need to maintain the signature of the function call regardless of return type. So void is used in such cases where nothing is returned.
Although void functions can technically 'return' something if you pass a parameter by ref or a pointer in etc.
 
Last edited:
Back
Top Bottom