answersLogoWhite

0

Why are some variables capitalized?

Updated: 10/12/2022
User Avatar

Wiki User

7y ago

Best Answer

Unless a language has strict rules regarding naming conventions, how we name our variables is really a matter of personal style. In C and C++ we generally prefer all lowercase with underscores separating each word as this helps readability and retains consistency with standard library conventions. Using a leading capital typically denotes something of importance, but is usually applied to a user-defined type rather than to a variable. Uppercase names are generally avoided because macros are conventionally named using all uppercase so they stand out. Other languages have other conventions, but a leading capital typically has no real meaning unless it is dictated by some language rule.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why are some variables capitalized?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

Why you write a string with S capital?

A String in Java is an object, just like an Integer, which means creating them calls their class file, which has to be capitalized. Variables like int and float are primitive variables, meaning an object isn't created to hold them, so they aren't capitalized.


Would you capitalize association?

Yes, "Association" should be capitalized when referring to a specific organization or group. However, if used in a general sense, such as "There was an association between the two variables," it does not need to be capitalized.


Should 'some' be capitalized when it's used in a title?

Capitalized it when it is the first and last word of the title


Do you have to use the same variables for all equations when creating a system of equations?

The idea is to work with the same variables, but it is possible that some of the variables are missing in some of the equations.


Should the word them be capitalized?

Unless them is being used as a proper noun of some sort, them is not generally capitalized in a sentence.


What are some science experiments with variables?

A science project that has variables can be an experiment that aquires for variable change.


Why are variables important to science?

Because mathematical formulas can only describe dynamic changes if some elements (variables) vary in relation to other variables.


What is definite variable?

There is no such thing as definite variable in mathematics. Some of the variables in mathematics are independent and dependent variables. More variables are usually found in probability textbooks.


What variables can affect taste of a soft drink?

Some variables are if it is new or old, hot or cold, diet or normal


Why are dictionary words not capitalized?

Some words need to be capitalized; others do not. For every word to be capitalized in a dictionary would be confusing because one would not know which words they would need to capitalize in everyday usage.


What is the differences between dependent variables and controlled variables in an experiment?

Controlled variables are things that may effect the outcome of an experiment, like temperature are pressure or the amount of some substance used. Dependent variables are those which change due to the conditions mentioned above. These might be speed of the reaction, or the quantity of some product.


What value is stored in uninitialized variables?

Some languages assign a default value as 0 to uninitialized variables. In many languages, however, uninitialized variables hold unpredictable values.