[Coco] question C++
John Kent
jekent at optusnet.com.au
Wed Mar 21 22:51:14 EDT 2012
On 22/03/2012 1:14 PM, Luis Fernández wrote:
> hi, Thanks
> but I had understood that address is *val
> or am I wrong?
> ---------------------------------------------------------------------------------
> Making
> CoCoDskUtilPack V 1.0.10.zip
> http://cococoding.com/cocodskutil/ Thank Aaron Wolfe
> My personal blog: http://www.luis45ccs.blogspot.com
> ---------------------------------------------------------------------------------
>
*val is the value at the address of the pointer val.
double* dptr;
defines a pointer to a double
double dval;
allocates memory for a double
dptr = &dval;
assigns the address of dval to dptr
*dptr = dval;
puts the value dval in the location pointed to by dptr.
I hope I have that right.
John.
--
http://www.johnkent.com.au
http://members.optusnet.com.au/jekent
More information about the Coco
mailing list