loading...

re: May 22nd, 2020: What did you learn this week? VIEW POST

FULL DISCUSSION
 

I got to know that the following program is a valid C code

char* str = "Hello" "" "World";

It automatically concatenates so the output would be Hello World.

 

It's a foot gun in some cases (like forgetting a comma between strings) but I get a lot of use from this feature when writing macros

 
 

Yeah but it's really weird and confusing imo.

Sounds like it would make for a good post on DEV. 😉

It is really small so I don't think it's worth an article.

code of conduct - report abuse