Hi ,
I am still confused about pointers. I have a simple function ,that does some math calculations, called
void something( int Y, double *Z)
{
Y = Y + Z }
I want to call it in main, but am confused as to how the *Z should be called
I know it can't be called like :
something (3, 4);
it gives an error of:
"passing double to argument 2 of something(int, double *) lacks a cast"
But, I am unclear of how casting works and what its for, and not sure how this "double *Z" argument works.
Thanks for any explanations!!! It is appreciated.



LinkBack URL
About LinkBacks


