Another newbie Pointer/Array question!
I am having trouble interpreting certain snippets in the code below (the omitted code is hardware specific code).
I have had a look on the tutorial regarding pointers & arrays but still couldn't figure it out.
I have listed the code with comments of my current understanding of each statement and would be much obliged if someone could clarify what they actually do.
Thanks.
Code:
int *perform(int *w) //perform takes pointer to an int as arg & returns the same type
{
float *out[1]; // An array of pointers to floats with 1 element
int n = (int)(w[3]); // Why does w become an array suddenly??
out[0] = (float *)(w[2]); // Array cast to type pointer to float
....
*out[0]++=0; // Does this set each element in out[] to 0 on each cycle? what relevance does the * have here?