Does how you name a variable have any impact on the memory usage of an application?

前端 未结 7 1312
灰色年华
灰色年华 2021-02-20 09:05

Declaring a variable name, how much (if at all) impact does the length of its name have to the total memory of the application? Is there a maximum length anyway? Or are we free

7条回答
  •  生来不讨喜
    2021-02-20 09:27

    MSVC++ truncates variable names to 255 characters. Variable name length has no impact on compiled code size.

提交回复
热议问题