delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/03/14:43:32

Date: Sat, 3 Jan 1998 11:40:14 -0800 (PST)
Message-Id: <199801031940.LAA26869@adit.ap.net>
Mime-Version: 1.0
To: "laine" <laine AT ks DOT iwn DOT fi>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Pointer problem

At 09:47  1/3/1998 GMT, laine wrote:
>Hi!
>
>How can I make a pointer to an array?
>
>I'm not sure if it's called an array, but it's like this:
>	 array[5][1] (for example)
You can't have a pointer to an array, per se. Usually what you want is a
pointer to its first element. You can get this by saying:
&(array[0])

or just

array

HTH

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019