Computer Science, asked by mamtaraj3661, 4 months ago

Why is the DIM statement used in QBasic

Answers

Answered by Ajaiy
0

Answer:

The DIM statement is used to declare the number of objects in an array

A variable is a box to store information; an array is a container to store variables. Using DIM in QBasic declares the number of variables in an array.

Syntax:

DIM [array name] ([number of variables])

Note : Use a dollar sign after the array name if you want to contain variables containing only alphanumeric values(that is, anything in quotations).

Example:

DIM AGE(10)

Similar questions