c++ question
Andrew McNabb
amcnabb at mcnabbs.org
Fri Sep 22 13:06:03 MDT 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://plug.org/pipermail/plug/attachments/20060922/a3dff60f/attachment.pgp
More information about the PLUG
mailing list