[Solved] Why does my function print ‘0’?
You are calling function expecting float* with a pointer to int. In C++ it is an error and your code does not compile. In C you will most likely get a warning and undefined behaviour anyway. solved Why does my function print ‘0’?