Computer Science for IGCSE & O level - Programming (Section 2 - No. 31)

Which of the following is a valid variable name?
1st_name
my-variable
_variable
if

Explanation

Variable names can start with a letter or underscore; they cannot start with a number and cannot be reserved words.

Comments (0)

Advertisement