Russel Caldwell wrote:
Sorry, I guess this is a bit off topic but does anybody know if there is a way of obtaining the address where a character array is pointing to in C++?

The pointer value *is* the address. For example:

  char *foo = ....

  printf( "The address is %p\n", foo );

You do not need to use the & operator.

--Dave

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to