(float) or (float*) wrt sizeOf()
I keep seeing these calls when allocating memory and its confusing the **** out of me. :) Please can someone clarify for me.
Here are the two calls that are confusing me.
malloc(arraySizeX*sizeof(float*))
malloc(arraySizeX*sizeof(float))
Whats the difference between
sizeof(float*)
and
sizeof(float)
More precisely what affect does the * symbol have on the parameter float?
Not sure if Its a typo I keep seeing pop up when I see this function used (mostly in malloc() calls) or if these two calls have different results?
Thank you.