Find out the types of variables in a computer.
Answers
Answered by
0
Answer:
Not entirely clear what you mean here. In general, types and variables are concepts in a programming language that you're working with instead of a computer.
Explanation:
If you're referring to machine code, this simple works at the bit-wise level and doesn't actually have any types. Types are again, a feature that is really implemented at the language level. The only difference might be the size (32 bit integer vs 64 bit integer, etc.)
Answered by
0
Variables are used for storing information which is to be referenced and altered in a computer program.
There are five types of variables in a computer: Constants, global variables, class variables, instance variables, and local variables.
- Constants are declared by capitalizing each letter in the name of the variable, per Ruby convention. They are used to store data that are never required to change.
- Global variables are declared with the start of the variable name with the dollar sign ($)
- Class variables are declared with the start of the variable name with two (@) signs.
- Instance variables are declared with the start of the variable name with one (@) sign.
- Local variables are declared with the start of the variable name with neither ($) nor (@) and not even capitalizing the entire variable name.
#SPJ2
Similar questions
English,
1 month ago
English,
1 month ago
Math,
3 months ago
Math,
9 months ago
CBSE BOARD XII,
9 months ago