Variable & Constant in QBASIC with difference

Variables

Variable in QBASIC are the container that holds certain value. The value of variable can change depending on conditions or on information passed to the program while executing. Variable represents storage locations in the computer’s memory.

age = 18

Variable Types

1. Numeric Variable

Numeric variable can be a single letter of alphabet followed by one numerals. Numeri variable only holds numeral values.

2. String Variable

Constant

Types of Constant

Numeric Constant
String Constant

What is the Difference between Variable & Constant in Qbasic ?

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top