Hi, all

If I have array:

float* p ;
p = (float*) malloc( sizeof(float) * 10)

and I have a function that give me two numbers each time I call it

If I want to call this function 5 times, how do I save these 10 value outputs sequentially into my array p buy just put my array into the function ?

like:

for( int i=0; i<5; i++ )
{
myfunction (A, B, *p) ;
}



THX