Counting the number of elements of a double **
Posted on 2004-10-20
Hi, in a called function I have counted and allocated the size for this double **, I have now passed it back to the original function. I need to know the number of elements in the y position, i.e. double[x][y], I have tried a few stabs at using sizeof and could only get the size of the pointers, now I am trying to traverse until I reach a NULL, but I am getting the compiler error of: invalid operands to binary !=
Here is a snippet of my traversing code:
int count_this= 0;
while (trajectory_data[input_index]!= NULL)
I am trying to count just the number of elements in trajectory_data
Thanks for any advice and help, I am putting 500 on this one because it is URGENT.