Java...
If I right ( int value = 1001 ) instead of ( int val = 1001 ) while doing a program , will my answer be wrong ?
Happy Republic Day .
pls ans me and don't spam .
Answers
Answered by
1
Answer:
no it will not be wrong ,you can assign any variable name its up to you
Answered by
1
No, identifier names don't make much difference to the program's working as long as it is within the rules of naming an identifier.
But meaningful identifier names like in your case, using value instead of val, is a good habit, it improves the program's readability and simpler to interpret.
Similar questions