strings no longer writable?
Mike Lijewski
lijewski at theory.tn.cornell.edu
Tue Oct 30 04:44:10 AEST 1990
My understanding is that strings are no longer writable. That is to say,
the assignment to s[5] in the below program shouldn't be allowed.
main() { char *s = "testing"; s[5] = 'z'; }
Is a conforming implementation required to issue a warning, an error, or
what?
--
Mike Lijewski (H)607/272-0238 (W)607/254-8686
Cornell National Supercomputer Facility
ARPA: lijewski at theory.tn.cornell.edu BITNET: mjlx at cornellf.bitnet
SMAIL: 25 Renwick Heights Road, Ithaca, NY 14850
More information about the Comp.std.c
mailing list