Search This Blog

Saturday, March 20, 2010

C++ print value of a pointer

Programmer Question

I have an array of double pointers, but every time I try do print one of the values the address gets printed. How do I print the actual value?



cout << arr[i] ? cout << &arr[i] ? they both print the address



Does anyone know?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails