sizeof "string"

Geoff Kuenning geoff at proper.UUCP
Mon Feb 6 18:55:05 AEST 1984


>	char permute[] = "\3\2\1\9\8\7...

Naughty, naughty!  In the FIRST place, \9 is NOT a legal octal value.  In
the second place, if you are initializing a "char" array to binary numbers,
rather than characters, you should use:

	char permute[] = {3, 2, 1, 9, 8, 7...



More information about the Comp.lang.c mailing list