delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | "Jakob Bieling" <NOnetsurfSPAM AT gmx DOT net> |
Newsgroups: | comp.lang.c++,comp.os.msdos.djgpp |
Subject: | Re: ** Pointer thingie's <= what's up with the double *? |
Date: | Fri, 14 Dec 2001 12:04:26 +0100 |
Organization: | T-Online |
Lines: | 29 |
Message-ID: | <9vcma8$gjt$06$1@news.t-online.com> |
References: | <vTkS7.469287$Jy2 DOT 33400140 AT news DOT quicknet DOT nl> |
Mime-Version: | 1.0 |
X-Trace: | news.t-online.com 1008327817 06 17021 4VJUT9JESXA+uj 011214 11:03:37 |
X-Complaints-To: | abuse AT t-online DOT com |
X-Sender: | 520055769711-0001 AT t-dialin DOT net |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4522.1200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Emile Bosch" <emilebosch AT hotmail DOT com> schrieb im Newsbeitrag news:vTkS7.469287$Jy2 DOT 33400140 AT news DOT quicknet DOT nl... > void** ptr; //? Double **? > > I get the single * but what's up with the ** ?? > just when i tought i got the pointer thingies, they invented this :D lol. ** means pointer-to-pointer. So, ptr would point to a memory location that points to another memory location. You can also have three or four or more of those: long*** ptr; Now you have a pointer to a pointer that in turn points to another pointer. Usually, you don't use the *** and rarely use **. > So can someone help me with this? > Oh, and if thát's possible is it also possible to have anything like > > void *& or something? Yes. That's a reference to a pointer. You won't see something like long*&& or something, though. But here too you may use stuff like long**&. hth jb
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |