V
Vasileios Zografos
Hi everyone,
I need to build a function to plug it in a program (that I didnt make or
can change) that should be called something like this:
float someFunction(float x[])
{
...
}
the problem is, I cannot use someFunction(float x[], int sizex) so I
cannot know the size of the array.
Is there a way I can calculate the size of the static array from inside
the function e.g. sizeof(x)/sizeof(float) or something similar?
Thank you
V.
I need to build a function to plug it in a program (that I didnt make or
can change) that should be called something like this:
float someFunction(float x[])
{
...
}
the problem is, I cannot use someFunction(float x[], int sizex) so I
cannot know the size of the array.
Is there a way I can calculate the size of the static array from inside
the function e.g. sizeof(x)/sizeof(float) or something similar?
Thank you
V.