Best Answer

a literal is a constant value, the difference is a variable can change it's value.

Q: What is the difference between a variable and a literal in prgramming?

Write your answer...

Submit

Still have questions?

Continue Learning about Math & Arithmetic

by getting the variable by it's self

A literal cofficient is any variable in an algebraic expression. For example, in "21xyz", x, y, and z are literal coefficients.In math, a coefficient refers to a numerical or constant quantity placed before and multiplying the variable in an algebraic expression.

if you solve by plugging in the known values ahead of time you won't have a general formula for the variable in the literal equation. Therefor if the known values change, you would have to start all over again, making each problem more individualized. Once the literal equation is solved for some variable, if the known values change all you have to do is plug in those new numbers to your literal equation, and out pops your answer

The difference is that first you have to understand the problem and translate it into an equation (or equations).

If there is nothing in between them, it means multiplication A number multiplied by another, literal translation.

Related questions

by getting the variable by it's self

the difference between webcontrol and literal?

a -- identifier 'a' -- character-literal "a" -- string-literal

yes.

Well, A is an identifier; 'A' is a character-literal; "A" is a string literal (of 1 character); "'A'" is another string literal (of 3 characters).

A literal is either a variable or a negated variable.

int a; -- variable definition"int a" -- string literal

The main difference is that base is the literal word and basis the figurative word

A literal can be a number, a character, or a string. For example, in the expression, x = 3 x is a variable, and 3 is a literal.

descriptive is more literal than figuative.

Literal Equation

An identity is a special type of literal equation. It is true for all values of the variable.