how to cast from float to void* in C

i trying to cast a float to void* and its make an error
"cannot convert to a pointer type"
someone can help?
what you say in your post is somewhat silly (cast a float to void*) - not going to happen.

post your code - so we can see what you are actually trying to do ( maybe you mean that you want to cast the address of a float to a void pointer)
Last edited on
never mind i got it ..
i have array of floats float** arr
and i wanted to sent it to a function that gets (void*)data
but its all ok i succeed
thanks anyway
Topic archived. No new replies allowed.