77.9k views
1 vote
What does a declaration provide for a variable?

User Ginalx
by
4.3k points

1 Answer

4 votes

Answer:

Step-by-step explanation:

Declaration of a Variable. A declaration of a variable is where a program says that it needs a variable. For our small programs, place declaration statements between the two braces of the main method. The declaration gives a name and a data type for the variable. It may also ask that a particular value be placed in the variable.

User Chrisheinze
by
4.1k points