What do two adjacent pound signs mean in a C macro?

前端 未结 3 851
轻奢々
轻奢々 2020-12-14 07:38

I\'m taking a look at an application that defines a large set of constant arrays. What really confuses me is the use of two pound signs next to each other in a macro. For ex

3条回答
  •  不知归路
    2020-12-14 08:12

    ## concattenates symbols. So for example if the value of p is ab, 0x##p would become 0xab.

提交回复
热议问题