answersLogoWhite

0

What are the rule used in naming a variable Give examples?

Updated: 8/20/2019
User Avatar

RohitJamadar

Lvl 1
11y ago

Best Answer

variable is a character or number

sequence of a character is called array name

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the rule used in naming a variable Give examples?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Rules in naming variables in programming?

there are various types of naming rule provide for function ,identifier,i.e variables.but naming rule for variable must meet certain condition.. 1.you can easily idenfy what is variable for.for eg.you may use int a;/to store no of student in your prog. but it is better instead of using "a",you can write any of the following definition int stu; or int stu_no; or int studentno; 2.it must be abbreviated.because although modern compiler support 32 char variable but still where you use that variable you have to type that name again &again. so for eg. in the above case int stu_no; is optimal. when these precondition are met then here are some rules for naming a variable: 1.you use only English alphabet,numeric no,& _(underscore). 2.you must start with a alphabet. then you continue with alphabet or numeric or under score.for eg. you can define a variable like int stu_comp_2009;//for no of student 2009 batch. 3.no variable can start with number or _.such naming may cause some compiler do the right job but maximum would not support this.


What is the rule for naming?

Grammar.


What is the rule when naming ionic compounds with variable oxidation numbers?

name the metal first followed by the non metal retaining the rootword and suffixes "ions" #mariele duldulao


What is the difference between a variable and a rule?

a variable changes a rule doesn't.


Give examples of the final rule subject agreement rule?

many a true word is spoken in jest


What fascinate Jonas about his father?

The fact that his father had broken the rule of looking at the naming sheet before the naming ceremony


What are the 2 groups of naming sets?

the ways in naming a set are: roster method, rule method and set builders


A function is a rule that assigns each value of the variable to exactly one value of the dependent variable?

I found two answers for this question. A function is a rule that assigns to each value of one variable (called the independent variable) exactly one value of another variable (called the dependent variable.) A function is a rule that assigns to each input value a unique output value.


Write The rules in forming the plural form of nouns give examples of each rule?

taba si jason


What are the different methods in naming sets of operations?

Listing ward method , rule method


What were the consequences of Queen Elizabeth I not marrying or naming an heir?

Because she did not want to give you crown up and be ruled over


What are the 3 ways of naming a set?

rosting method rule method set-builder rotation