2021年4月23日星期五

How does the stringify operator expand TABS?

GCC seems like to always expand tabs in source code by spaces. It preserve space that are inside the expression. What does the standard says about it?

For example, what will c contains in this example (<TAB> represent a litteral \t character in source code file).

#define X(a) #a    const char* c = X(<TAB>a<TAB>c<TAB>);  // c == "a c" ? (looks like what gcc does)  // c == "a\tc" ?  
https://stackoverflow.com/questions/67238458/how-does-the-stringify-operator-expand-tabs April 24, 2021 at 09:08AM

没有评论:

发表评论