is it good or bad to reuse the variables?

后端 未结 9 2047
灰色年华
灰色年华 2020-12-17 15:03

I wonder if it is good or bad (or does not matter) if I reuse the variable names as much as possible? for example

int main(void){
  //...
  int x=0;

  //..
         


        
9条回答
  •  鱼传尺愫
    2020-12-17 15:19

    You can re-use it but i don't think it will bring a any significant benefit to your programm and it will make your code less readable.

提交回复
热议问题