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

6y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

6y 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

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 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.


What do controls and variables mean in a science project?

A control is something you cannot or will not change. A variable is something that can be changed or will be changing. Example: We cannot change our sex... either male or female. We cannot change the country where we were born.


How can you change the value of a constant variable in C?

You can change a static variable by putting the static variable into a function that has operations that you intend to execute upon the variable. Example, you want to change the static variable to another value or make an addition of 2. Put the source code inside a function with the static variable declared locally within the function.Every time you call the function, the static variable value will change. Take note that the static variable retains the last value you declared it in your function call.A more terse answerLocal variables declared as static are changed as normal; they are special in that their values persist across function calls.