Computer Science, asked by Huda1108, 7 months ago

Which of the following is true for variable names in C ?

Answers

Answered by brainlyherotodass
3

Explanation:

hi

To name a variable in C language, the contenders need to follow some specific rules. A variable name can have uppercase and lowercase letters, digits and underscore only. The first letter of a variable should be either a letter or an underscore. There is no rule on length of the variable.

Answered by anjaliom1122
0

Answer:

Variable name cannot start with a digit is true for variable names in C.

Explanation:

Variable names must not begin with a digit. The variable name in C cannot begin with a digit, according to the syntax.

Variable naming guidelines:

  • Variable names can only contain letters (uppercase and lowercase), digits, and underscore.
  • A variable's first letter should be either a letter or an underscore.
  • There are no restrictions on the length of a variable name (identifier).

The only characters that can begin a variable name are the alphabet and underscore. It cannot start with a digit. There can be no whitespace within the variable name. Variable names cannot contain any reserved words or keywords, such as int, goto, and so on.

Similar questions