hey, there, i am wondering whether a static array is similar to a static variable, which hold value between subsequent calls.
and I will call the readdata() in a while loop. I am worrying that it is not efficient, since each call will allocate and deallocate the workspace. So does static array do the job?
For reason of clarity, I want to keep the workspace inside readdata() since that's the only place it is used. To pull it out and place it in the caller is not what I want.
static double workspace;
Thanks for your reply.