Question on backslash in string in define
Henry Spencer
henry at zoo.toronto.edu
Mon Sep 10 08:48:07 AEST 1990
In article <2480 at polari.UUCP> 6sigma2 at polari.UUCP (Brian Matthews) writes:
>If I have the following:
>
>#define STR "12\
>34"
>char *x = STR;
>
>what should x point to? "1234", "124", "hello world" :-), or is it
>undefined?
It is perfectly well defined. The backslash-newline sequence vanishes
completely before anything else is done. x points to "1234".
--
TCP/IP: handling tomorrow's loads today| Henry Spencer at U of Toronto Zoology
OSI: handling yesterday's loads someday| henry at zoo.toronto.edu utzoo!henry
More information about the Comp.std.c
mailing list