Computer Science, asked by kshitijtayade5865, 6 months ago

What are the rules for naming a constant in qbasic

Answers

Answered by tanishasingh628
0

Answer:

1.Variable names in Visual C++ can range from 1 to 255 characters. To make variable names portable to other environments stay within a 1 to 31 character range.

2. All variable names must begin with a letter of the alphabet or an underscore( _ ). For beginning programmers, it may be easier to begin all variable names with a letter of the alphabet.

3. After the first initial letter, variable names can also contain letters and numbers. No spaces or special characters, however, are allowed.

4. Uppercase characters are distinct from lowercase characters. Using all uppercase letters is used primarily to identify constant variables.

5.You cannot use a C++ keyword (reserved word) as a variable name.

Similar questions