If I have this function..
how do you write its function declaration?Code:void push(void *value, void *stack)
{
//code
}
like this?
Code:void push(void, void);
Printable View
If I have this function..
how do you write its function declaration?Code:void push(void *value, void *stack)
{
//code
}
like this?
Code:void push(void, void);
Code:void push(void *,void *);
You can do as ch4 mentions, but it is perfectly acceptable (and a good idea) to use
as your function prototype. (This way, just by reading the header, you can tell which argument does what.)Code:void push(void *value, void *stack);