www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/16/07:03:19

From: "Preacher" <trulsuh AT stud DOT idb DOT hist DOT no>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Const pointers
Date: Sat, 15 May 1999 23:16:32 +0200
Organization: HiST
Message-ID: <7hkolf$j8a$1@balder.stud.idb.hist.no>
References: <ihrypBA2oYP3Ewbq AT dunvegan1 DOT demon DOT co DOT uk>
NNTP-Posting-Host: preacherson.tihlde.org
X-Trace: balder.stud.idb.hist.no 926803439 19722 158.38.48.55 (15 May 1999 21:23:59 GMT)
X-Complaints-To: usenet AT idb DOT hist DOT no
NNTP-Posting-Date: 15 May 1999 21:23:59 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Lines: 9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

To declare a const pointer (that is, the address of the pointer cannot be
changed but the contents it point to can) write:

    int * const Pointer=&variable;

Preach.



- Raw text -


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