On Fri, Sep 22, 2006 at 01:00:30PM -0600, 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++? >
Are you talking about something like:
char s[100];
If so, you can use s as a pointer, like:
char *p;
for (p = s; p < 100; p++) {
putchar(*p);
}
Is that what you're looking for?
--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868
signature.asc
Description: Digital signature
/* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
