Tutorial Declaring Variables

Pooja Sharma

Well-Known Member
Declaring variable is a good programming practice to declare all variables before they can be used in program.

Use declare variable to instruct the processor to set aside a location in memory for our use to assign a name to the memory location and to inform the processor what type of data we wish to store there.

A programmer in VB uses the keyword dim to declares a variable.

The given figure explains that variable includes name, which stores the value of the type it belongs to.
Last edited:

Swati Mishra

Content Writer
when we declare the variables in the programming then it is very important to know what things we have to add with this, such as
when we use the integer
when we use the float
when we use the double
these things very important to place at the correct otherwise error will occur.