a named constant is pretty much the same thing as a literal constant, except it is a name. both cannot change. literal constants are numbers, named constants are words. tada!
a literal is a constant value, the difference is a variable can change it's value.
the difference between webcontrol and literal?
2L is the literal constant for a long (int) type with the value 2.
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).
The main difference is that base is the literal word and basis the figurative word
An identifier is a sequence of characters used to denote one of the following:Object or variable nameClass, structure, or union nameEnumerated type nameMember of a class, structure, union, or enumerationFunction or class-member functiontypedef nameLabel nameMacro nameLiterals (C++)Invariant program elements are called "literals" or "constants." The terms "literal" and "constant" are used interchangeably here. Literals fall into four major categories: integer, character, floating-point, and string literals.A literal may be any of the following:integer-constant character-constant floating-constant string-literal
descriptive is more literal than figuative.
by getting the variable by it's self
a string constant
Literal is a constant that is written as a part of the instruction. It avoids storing a constant in the memory and using a label for it in the instruction.the assembler generates the specified value as a constant at some other memory locatin.the address of the generated constant is used as the target address for the machine instruction. with immediate addressing, the operand value is assembled as a part of the machine instruction