answersLogoWhite

0

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

8y ago

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao

Add your answer:

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