108k views
2 votes
A variable definition defines the name of a variable that will be used in a program, as well as:

a. the type of data it will be used to hold
b. the operators that will be used on it
c. the number of times it will be used in the program
d. the value it will hold
e. None of these

1 Answer

2 votes

Answer:

A) The type of data it will hold

Step-by-step explanation:

In most programming languages, a variable must be decalared before it can be used. Variable declarations allows the compiller to make provision of memory space for the variable so the type of data must be defined accordingly with the name of the variable because different data types occuppy different spaces in memory for example

An integer is 32 bit integral value

A char is 16 bit unicode value

A double is 64 bit floating point value

User Jordan Stefanelli
by
6.2k points