I understand four type of function in c language as following
I don't understand following type of functionCode:
void foo (void) // Functin does't take any value and doesn't return any value
void foo (int X) // Functin take value store in X and doesn't return any value
int foo (void) // Functin does't take any value and return integer value
int foo (int X) // Functin take value store in X and return integer value
Does it valid function?
What type of function it is ? What does it return ?Code:int *foo ( int X)