Whether variable name in any programming language takes memory space

后端 未结 10 1605
时光说笑
时光说笑 2021-01-05 17:44

e.g.

int a=3;//-----------------------(1)

and

int a_long_variable_name_used_instead_of_small_one=3;//-------------(2)
         


        
10条回答
  •  感动是毒
    2021-01-05 17:56

    In modern compilers the name of a variable does not impact the amount of space that is required to hold it in C++.

提交回复
热议问题