macro

answerme's Avatar, Join Date: Dec 2007
Ambitious contributor
#define KS(p) ks((void *)&p)

Can anyone explain me what this macro is doing
technosavvy's Avatar
Contributor
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 *.
answerme's Avatar, Join Date: Dec 2007
Ambitious contributor
Thanks
I know why do we use void pointer ,but in real time project what is the use of it .