delorie.com/archives/browse.cgi | search |
From: | Jakub <johne AT dontspam DOT cromnet DOT net DOT au> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Constant pointers help. |
Date: | Tue, 28 Apr 1998 10:41:11 +1000 |
Organization: | DIALix Internet Services |
Lines: | 20 |
Message-ID: | <354525A7.5A27DD86@dontspam.cromnet.net.au> |
NNTP-Posting-Host: | news AT marconi DOT dialix DOT com DOT au |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hi, Could someone help me out here. example: const char *name1 = "John"; // Value cannot be changed Is the above the same as?: const char something = "John"; char *name1; name1 = &something; What would be the expansion of the following? char *const name2 = "John"; // Pointer cannot be changed Thank you. Please remove "dontspam" from my email.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |