M
Michael
Hi,
once I read here that it is not 'a good idea'
to pass variables that are not initialized to
a function.
I have
void something ( double *vector );
....
int main ( void )
{
double vector[3];
something ( vector );
...
}
'something' puts its results in the array 'vector'.
Do I have to initialize vector before passing it?
I wonder because if i don't do do, 'splint' blames me of
being lazy ...
Thanks,
Michael
once I read here that it is not 'a good idea'
to pass variables that are not initialized to
a function.
I have
void something ( double *vector );
....
int main ( void )
{
double vector[3];
something ( vector );
...
}
'something' puts its results in the array 'vector'.
Do I have to initialize vector before passing it?
I wonder because if i don't do do, 'splint' blames me of
being lazy ...
Thanks,
Michael