|
-
March 3rd, 2009, 07:44 PM
#1
pointer
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|