+ 1
What is the purpose of using proper names for identifiers ?Explain
3 Respostas
+ 1
It helps you to remember the purpose of the variables and functions. It also helps others to understand your code.
0
thanks
0
which is more understandable?
void f(int& a, int& b)
{ a ^= b; b ^= a; a ^= b; b ^= a; }
void swapTwoNumbers(int& num1, int& num2)
{ num1 ^= num2; num2 ^= num1; num1^= num2; num2 ^= num1; }