answersLogoWhite

0

Not necessarily.

  • A variable can hold other types of values, not just numbers. For example, a variable can hold a date, a text (also know as "string"), a boolean (true or false) value, etc. In object-oriented programming, you basically make up your own data types.
  • An array variable can hold several related values. The individual values are usually distinguished by a number, called a subscript. (In other words, you have the first element, the second element, etc. in the array.)
User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor

Add your answer:

Earn +20 pts
Q: Does a variable only have one numerical value?
Write your answer...
Submit
Still have questions?
magnify glass
imp