Why we use void*

what is happening by using void*

and sir said we can use both void* and int* how is it possible

Hello @mohitsingh the difference between the void and the int is that void may not return any value but you have to return somevalue with int.
either of the option is fine.
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.