Computer Science, asked by sushilk4349, 5 months ago

3. What is variable? What are the rules followed for naming a variable?​

Answers

Answered by fadilahkhanA
4

Answer:

The rules and conventions for naming your variables can be summarized as follows: Variable names are case-sensitive. A variable's name can be any legal identifier — an unlimited-length sequence of Unicode letters and digits, beginning with a letter, the dollar sign " $ ", or the underscore character " _ "

Answered by Anonymous
1

A variable is a named memory location, which contains a value. It's value depends upon the circumstances and problems in a program.

The rules for naming a variable is as follows :-

  • A variable may have any number of characters.
  • It may contain alphabets, digits and underscore.
  • The underscore can be applied in between the characters to increase the length of a variable name.
  • Variable names should be meaningful which easily depicts the logic.
Similar questions