What is max length for an C/C++ identifier on common (build) systems?

前端 未结 3 2020
感情败类
感情败类 2021-02-05 01:49

I don\'t remember the standard saying something of the max length for identifiers so in theory they can be long. In real life, those names could be limited by at least

3条回答
  •  醉话见心
    2021-02-05 02:21

    Annex B of the C++ Standard says that an implementation should support identifiers at least 1024 characters long, but this is not mandatory.

提交回复
热议问题