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.
int *perform(int *w) //perform takes pointer to an int as arg & returns the same type
float *out; // An array of pointers to floats with 1 element
int n = (int)(w); // Why does w become an array suddenly??
out = (float *)(w); // Array cast to type pointer to float
*out++=0; // Does this set each element in out to 0 on each cycle? what relevance does the * have here?