macro

Ambitious contributor
23Feb2008,11:28   #1
answerme's Avatar
#define KS(p) ks((void *)&p)

Can anyone explain me what this macro is doing
Contributor
25Feb2008,10:21   #2
technosavvy's Avatar
i hope u will understand with this example:
ASSUMING: ks (in lower case) is an in built function

Code:
int p = 5;
Now, KS(p) will call the function ks passing the address of variable p and typescasting it to a void *.
Ambitious contributor
25Feb2008,16:56   #3
answerme's Avatar
Thanks
I know why do we use void pointer ,but in real time project what is the use of it .