| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Tutorial questions? |
Hello Jasen Replying to a message of Jasen Betts to JOHN GARDENIERS: JG>> There is one really humongous difference, which most people seem to JG>> have overlooked. A const uses no memory. JB> It does use memory, that's why you can make a pointer to it. JB> const int nil=0; JB> int *p=&nil; /* works */ JB> int *q=&0; /* doesn't */ I thought that compilers were allowed to optimize a const into a literal. Alan "Computers do bite" --- FleetStreet 1.14 NR* Origin: Alan's Point on Donor/2 (2:440/4.6) SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/397 635/506 728 810 639/252 SEEN-BY: 670/218 @PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 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™.