Is there a limit to the length of identifier names in C++?

前端 未结 2 396
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-17 12:41

Is there a length limit to the names of variables in C++? What is it? Does this have anything to do with the \"64/32-bitness\" of the machine?

EDIT:

2条回答
  •  萌比男神i
    2021-01-17 13:06

    In MS Visual Studio 2003–2012 the maximum length of an identifier is 2047 characters (per MSDN).

提交回复
热议问题