answersLogoWhite

0

What is constant variable in c?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

Constant variables refers to those variables whose values cannot be changed. These variables should be initialized along with their declaration. Attempt to change the value of a constant variable will generate compile error. The syntax for declaring a constant variable is:

const data-type variableName = value;

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is constant variable in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does a constant do in c plus plus?

A constant is a variable that does not change. The correct term is constant variable.


What is directly variation?

A variable y is said to be in direct variation with a variable x if there is a constant c (>0) such that y = c*x. c is called the constant of direct variation or proportionality.


What is a constant variables in c language?

It are a variable you add modifer 'const' to. It means these variable mustn't be modified.


What does c equal?

In math, a number signified by "C" is a constant number. A constant is the opposite of a variable. While a variable changes, a constant will always stay the same. For example, in the equation y = 4x + 10, 10 is a constant. If you did not know the value of 10 (for example, if you had just integrated), it could be written as y = 4x + c.


Is it necessary to initialize the const variable in c?

A constant variable cannot have its value changed at program run time.


What is integration of 34?

Assuming integration is with respect to a variable, x, the answer is 34x + c where c is the constant of integration.


Which portion of the antibody--V or C is its antigen--binding site?

C stands for constant or conserved, V stands for variable. The variable part is what latches on to the antigen.


What is the constant and variable of 6x?

The constant is the number; the variable is the letter.


What happens to a sine curve if a negative constant c is added to the variable x?

The curve is shifted to the right by c.


How do you use define in C?

Just type declare then the variable that you desire to assigned a certain constant value on it. Just type declare then the variable that you desire to assigned a certain constant value on it.


What is the constant variable in Avogadro's law?

The question is about an oxymoronic expression. A constant cannot be a variable and a variable cannot be a constant!


What a variable that does not change in an experiment is called a constant?

Constant variable