answersLogoWhite

0

Case-sensitivity relates to the way in which multiple variables and function names can have the same name, differentiated by their casing. For example:

int result = 1;

int Result = 2;

int RESULT = 3;

Although these declarations are valid, and unambiguous as far as the compiler is concerned, it's best to avoid mixing your cases like this. Sooner or later you'll refer to result when you really meant Result, and the compiler won't be able to help you find the error.

By convention, all-uppercase variables represent constants, making them easy to spot amongst actual variables.

User Avatar

Wiki User

13y ago

What else can I help you with?