Hi!
I have a problem with computing the length of a table. Let's say, i have a table like this:
double table[] = {..some elements..}
I use sizeof(table)/sizeof(double) and it works fine in main function. But when i use it in some other function, that has table for parameter, it always returns 0.
Why?
Thanks
I have a problem with computing the length of a table. Let's say, i have a table like this:
double table[] = {..some elements..}
I use sizeof(table)/sizeof(double) and it works fine in main function. But when i use it in some other function, that has table for parameter, it always returns 0.
Why?
Thanks