For the older compiler(K&R), you need cast the void pointer to the type data you pointed to but for modern compiler, you doesn't need to cast the void pointer to the type of data the pointing to.

I don't know whether this is true. I just guess. I abg your pardon if my opinion make you angry.

Thanks for all replies.

Your help and replies is greatly appreciated by me and others.