[Solved] Why does my function print ‘0’?

[ad_1]

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.

[ad_2]

solved Why does my function print ‘0’?