#: 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.
|