X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Emile Bosch" Newsgroups: comp.lang.c++,comp.os.msdos.djgpp References: <9vcma8$gjt$06$1 AT news DOT t-online DOT com> Subject: Re: ** Pointer thingie's <= what's up with the double *? Lines: 57 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <_4lS7.469306$Jy2.33404928@news.quicknet.nl> Date: Fri, 14 Dec 2001 12:11:48 +0100 NNTP-Posting-Host: 213.73.195.146 X-Complaints-To: abuse AT quicknet DOT nl X-Trace: news.quicknet.nl 1008328122 213.73.195.146 (Fri, 14 Dec 2001 12:08:42 MET) NNTP-Posting-Date: Fri, 14 Dec 2001 12:08:42 MET Organization: QuickNet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com whoosh that was a FAST reply =) Thanks!! I think i understand it now, have to bring it to real life with an example though! is this a good example of it?: int c; int *ptr; int **fptr; c = 5; ptr = &c; fptr = &ptr; ? warm regards, Emile Bosch "Jakob Bieling" wrote in message news:9vcma8$gjt$06$1 AT news DOT t-online DOT com... > "Emile Bosch" 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 > >