answersLogoWhite

0


Best Answer

A constant.

This is often used to make programming languages more human readable and give a hint to the compiler what a number ought to be by encasing it in a type.

For example in C by using "const char LF = 0x0a;" not only does it make it easier for a human to see that a "Line-Feed" character is being meant when LF is used instead of 0x0a, the compiler should also throw up a warning if LF is not being used as a character. It also stops the user from trying to change LF (albeit accidentally) with, say "LF = 0x0d;" as the compiler will error; the same error protection can be achieved by using "#define LF 0x0a" but as this is a preprocessor textual substitution it loses the warning ability of misusing the LF not as a char.

User Avatar

Wiki User

βˆ™ 7y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 7y ago

It is a constant.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What variable that is set and cannot change is?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What variable hasvalue that is read only and cannot be change during the program execution?

A constant is a variable with a value that is set at the time of declaration and cannot be changed during program execution.


Is any value that is set and cannot change a variable?

No, it is called a constant. For example, in algebra, all number values are constants.


What is the difference between dependent variable and independent variable?

a dependent variable is something that you cannot change but comes out as a result/an independent variable is something that you change in your experiment like the temperature of something or the amount of something


What is the difference between depend variable and independent variable?

a dependent variable is something that you cannot change but comes out as a result/an independent variable is something that you change in your experiment like the temperature of something or the amount of something


What is the difference between independent variable and depended variable?

a dependent variable is something that you cannot change but comes out as a result/an independent variable is something that you change in your experiment like the temperature of something or the amount of something


Distinguish between a variable and a control?

in an experiment we usually make two or more set ups. the first set up where all the conditions are normal is known as the control. the rest of the set ups which may have different conditions is called as the variable set up.example:suppose we are performing an experiment to check the growth of plants in absence of carbon dioxide.The control will have carbon dioxide (normal condition).the variable will not have carbon dioxide.this is done for a comparison between normal and abnormal conditions.Thank you.


What is the difference between independent and dependent variable.?

a dependent variable is something that you cannot change but comes out as a result/an independent variable is something that you change in your experiment like the temperature of something or the amount of something


What is the difference between the independent and dependent variable?

a dependent variable is something that you cannot change but comes out as a result/an independent variable is something that you change in your experiment like the temperature of something or the amount of something


What is a variable whose content has a value that is read only and cannot be changed during the programs execution?

A constant variable is a variable whose value is set once and cannot be changed throughout the program's execution. Once defined, the value of a constant variable remains constant and cannot be altered.


What does independent variable mean in electricity?

An independent variable is something that you, as the experementer, change to try and get a set of results. E.g, in an electrical ciurcut you may change the voltage to see how it affects resistance. Voltage is the independent variable as your changing it, resistance is the dependant variable as it changes due to the change in the independent variable.


What does Variable term means in math?

A variable is a symbol that represents one or more numbers.


How many types of cost?

There are variable and fixed costs. Businesses can manipulate the variable costs, but they cannot change their fixed costs in business.