TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Kevin Darling 76703,4227 (X)
from: James Jones 76257,562
date: 1991-07-23 19:59:44
subject: #11456-#C Compiler Problem

#: 11462 S3/Languages
    23-Jul-91  19:59:44
Sb: #11456-#C Compiler Problem
Fm: James Jones 76257,562
To: Kevin Darling 76703,4227 (X)

Hmmm...might better check that C book, Kevin. :-)  Initializing an array of
characters with a string constant *is* kosher C.  Now, what might give a
compiler that's not careful some trouble is if the field is a pointer to
character, because in that case a less-than-careful compiler might emit the
assembly language for the string right where the pointer should be--it has to
save it up for later (possibly MUCH later, if there's an *array* of structures
being initialized).

There is 1 Reply.

SOURCE: compuserve via textfiles.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™.