Article View: csu.cs.200
Article #110Re: multiple *'s
From: cassic
Date: Fri, 09 Oct 1998 00:00
Date: Fri, 09 Oct 1998 00:00
23 lines
1548 bytes
1548 bytes
In article <6vk3sl$mie@journal.concentric.net>, <x1e1r1@concentric.net> wrote: > I must have missed something. What exactly do the extra *'s in front of a > pointer mean? There were a few test questions about memory addresses that > had these( int ***Q for example). Anyone? > Each * represents a pointer to something. So int ** means a pointer to a pointer to an int. Remember a pointer is actually an address in memory of some variable. So a pointer to a pointer is the address of a pointer variable, which contains an address to another variable. You can thus have pointers to pointers to pointers ... and so on. A very common use of pointers to pointers is in the passing of command line arguments to a main function in C/C++ (I won't go into it here). Chris -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Technical Details
Message-ID:
<6vlo56$a6f$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6vk3sl$mie@journal.concentric.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 127144,6753cd57f9c4346 X-Google-Attributes: gid127144,public From: cassic@my-dejanews.com Subject: Re: multiple *'s Date: 1998/10/09 Message-ID: <6vlo56$a6f$1@nnrp1.dejanews.com> X-Deja-AN: 399432501 References: <6vk3sl$mie@journal.concentric.net> X-Http-Proxy: 1.0 x6.dejanews.com:80 (Squid/1.1.22) for client 207.168.232.17 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Oct 09 19:28:38 1998 GMT Newsgroups: csu.cs.200 X-Http-User-Agent: Mozilla/4.05 [en] (X11; I; SunOS 5.5.1 sun4u)