answersLogoWhite

0

What is constant variable in c?

User Avatar

Anonymous

13y ago
Updated: 8/20/2019

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

13y ago

What else can I help you with?

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.


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.


What is a trinomial with a constant term?

A trinomial is a polynomial with three terms, typically in the form ( ax^2 + bx + c ), where ( a ), ( b ), and ( c ) are constants and ( x ) is a variable. The constant term is represented by ( c ), which does not contain the variable ( x ). For example, in the trinomial ( 2x^2 + 3x + 5 ), the constant term is 5.


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


What is the constant and variable of 6x?

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


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 antiderivative of 8 pi?

The antiderivative of a constant, such as (8\pi), is found by multiplying the constant by the variable of integration and adding a constant of integration (C). Thus, the antiderivative of (8\pi) with respect to (x) is (8\pi x + C), where (C) represents any constant.


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!