answersLogoWhite

0


Best Answer

A keyword is a reserved word, used by the programming language to establish actions or commands. For example, in the line:

while (value < 100) {

//block of code

}

"while" is a keyword, used to indicate iteration (loop) of what's inside the block of code.

variables are user-defined words that are able to hold values. In the previous case, "value" can be thought as a variable.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
User Avatar

THV GAMING YT

Lvl 1
3y ago
bsdk
More answers
User Avatar

Wiki User

13y ago

Keywords are reserved words like(static,public......) which has a special meaning for compilers.

Identifier can be name of any variable or any name used to identify an object or entity .hence keywords cannot be used as an identifier

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

an identifier is any word you choose to name an item in a java program.

a reserved word is words that must be used only for their specified purpose.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between identifier and reserved word?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between standard and user defined identifier?

A standard identifier is a reserved word. Keywords such as for, if, goto, return, continue, break, do, while, final, extern, static and so on are all reserved. Fundamental data types and modifiers such as void, int, char, wchar_t, double, float, long, short, signed, unsigned, const, mutable, constexpr and so on are also reserved. A user-defined identifier is any name (function, class, namespace or alias) that is not a reserved word.


Is hello is an identifier token?

Yes. The word "hello" can be an identifier token. It is not a reserved word in C or C++, and it meets the criteria for being an identifier.


Why you use class keyword in c?

You may use it as an identifier, because it is not a reserved word in C.


What is swap in c plus plus programming language?

It is not a reserved word, so can be an identifier (name of a type/variable/function).


What word cannot be used alone as a file name since it is recognized by the operating system as a command or special identifier?

reserved


What is an identifier that links a citation to a source in MS Word?

An Endnote is an identifier that links a citation to a source in MS Word


Reserved word in assembly language program?

use of reserved word in assembly language


What is the difference between replinish and refill?

There is no difference between the word replenish and refill.


What are the similarities between a type writer and Microsoft word?

Microsoft Word is reserved specifically for typing documents. That's all a typewriter can do


What is difference between word size and word length?

I don't see any difference.


What is the difference between how is baby and how is the baby?

The difference is that there is an extra word


What is a four letter word for identifier?

name, code, mark