answersLogoWhite

0


Best Answer

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!

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between name constant and literal constant in c plus plus programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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

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


What is difference between Webcontrol and Literal?

the difference between webcontrol and literal?


What is the meaning of 2L in C programming?

2L is the literal constant for a long (int) type with the value 2.


What is the difference between 'a' and a in C?

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


What is the difference between an identifier and a literal?

yes.


What is the difference between A and A in string?

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


What is the difference between the words bases and basis?

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


What is the difference between literals and identifiers in C plus plus?

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


What is the difference between figurative language and descriptive?

descriptive is more literal than figuative.


What are similarities and difference between regular and literal equations?

by getting the variable by it's self


What is literal in c language?

a string constant


The difference between the literals operands and the immediate operands?

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