| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | How is memory handled? |
I just realized that my original post would have been correct had I made
the variable:
char * foo[] = {"For", "whom", "the",
"bell", "tolls");
The fun comes in rearranging the words yet keeping the meaning the same
(although breaking a few rules of English grammar).
JB> char *foo_pointer ="For whom the bell tolls" ;
JB> if you want a modifiable pointer to a string that should not be
JB> modified.
The question with which I am interested is what happens to the memory
used by the array after foo* goes out of scope?
þ CMPQwk 1.42 999
--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)SEEN-BY: 633/267 270 @PATH: 106/2000 1 379/1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.