Error 1 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'jTest' (or there is no acceptable conversion) c:\users\bridget\documents\visual studio 2010\projects\structsand ptrs\structsand ptrs\structsand ptrs.cpp 34
Try cout << "The address pointed to by strr is " << strr << endl;. This should agree with the value of ptr.
&strr would be the address where the pointer strr is stored - not the value (strr) contained there.
Note: &strr won't = &ptr since strr is a local copy of ptr. They are 2 distinct pointers but the same value is stored in them.
Thank you fun2code. Your explanation makes perfect sense. The value stored in ptr being the address of where the struct lives. Now I have to play with it some more to get it right in my mind. Thanks again for your help.