G
gopesh patel
Hello all,
I have written a simple function as follows:
void test(float &b)
{
b = 100;
}
int main()
{
float *a;
a = new float[2];
test(*a);
delete [] a;
}
Now I initialized the first element of array using b =100 inside
function test().
But I cant find how to initialize the second element of this array ?
Could someone help me with the syntax for that ?
Thanks a lot.
Gopesh
I have written a simple function as follows:
void test(float &b)
{
b = 100;
}
int main()
{
float *a;
a = new float[2];
test(*a);
delete [] a;
}
Now I initialized the first element of array using b =100 inside
function test().
But I cant find how to initialize the second element of this array ?
Could someone help me with the syntax for that ?
Thanks a lot.
Gopesh