sizeof "string"
Stephen Browning
slb at inuxh.UUCP
Thu Feb 2 23:46:19 AEST 1984
After reading the concise and well referenced explanation of
sizeof("Hello\0,world."), I was reminded of a question raised by
the people at Ecosoft here in Indy while they were writing their
C compiler.
Is "Hello\0, world." a string, or is it two strings?
Put another way, is '\0' a legal character to embed
within a string?
Remember, that just because a compiler accepts it, doesn't make it
right! Any takers on this one?
Stephen L. Browning
AT&T CPL
inuxh!slb
More information about the Comp.lang.c
mailing list