Science, asked by bhoslesakshi93, 4 months ago

in a C language variable cannot contain?

Answers

Answered by Ansh0725
2

A variable name can only have letters (both uppercase and lowercase letters), digits and underscore. The first letter of a variable should be either a letter or an underscore.

Answered by ashutoshmishra3065
1

Answer:

Explanation:

Variable in C language:

A variable is nothing more than a name given to a storage space that is accessible to our applications. Each variable in C has a unique type that specifies its memory size and organization, the range of values that can be placed inside, and the range of operations that can be performed on the variable.

A variable's name can include letters, numbers, and the underscore character. Either a letter or an underscore must come first. Because C is case-sensitive, uppercase and lowercase letters are separate.

Rules for Naming a variable in C:

  • The variable's name cannot start with a digit.
  • A variable name may contain letters, numbers, or even unique symbols like the underscore ( ).
  • Keywords like "float," "int," and similar terms are not permitted in a variable name.
  • The variable name cannot contain any blanks or spaces.
  • The C language is case sensitive, and it treats lowercase and uppercase letters extremely differently. The variable name is often kept in lower case.

Hence in a C language variable cannot contain Blank or Spaces.

#SPJ3

Similar questions
English, 2 months ago