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

前端 未结 3 2021
感情败类
感情败类 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:29

    • Microsoft C++: 2048 characters
    • Intel C++: 2048 characters
    • g++: No limit, as answered in this question: is there a length limit on g++ variable names?

提交回复
热议问题