Sudarshan's blogby Sudarshan Gaikaiwari

C auto magic string concatenation (revisited )

May 23, 2006

Well the concatenation works only with string literals. For example this fails to compile

char *s1 = “Hello ”; char *s2 = “World\n”;

printf(s1 s2); I am guessing that the concatenation happens either in the lexical analysis phase or during the parsing and not in the semantic analysis phase as Samat thinks.


Edit on GitHub