I have a scenario in which user types int,float or double.
i use void pointers and pass it to a function.
Is there any way to get the size of the element in the get function (for char :1 etc...)Code:void get (void * elm) { --------------- }
ofcourse if we pass another parameter to the get function while calling this can be done.
But my question is whether can i get the size without pass the size to the function.