No products in the cart.

Difference between keyword and identifier

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Difference between keyword and identifier
  • 1 answers

Sia ? 3 years, 3 months ago

SR. NO. KEYWORD IDENTIFIER
1 Keywords are predefined word that gets reserved for working progs that have special meaning and cannot get used anywhere else. Identifiers are the values used to define different programming items such as variables, integers, structures, unions and others and mostly have an alphabetic character.
2 Specify the type/kind of entity. Identify the name of a particular entity.
3 It always starts with a lowercase letter. First character can be a uppercase, lowercase letter or underscore.
4 A keyword should be in lower case. An identifier can be in upper case or lower case.
5 A keyword contains only alphabetical characters. An identifier can consist of alphabetical characters, digits and underscores.
6 They help to identify a specific property that exists within a computer language. They help to locate the name of the entity that gets defined along with a keyword.
7 No special symbol, punctuation is used. No punctuation or special symbol except ‘underscore’ is used.
8 Examples of keywords are: int, char, if, while, do, class etc. Examples of identifiers are: Test, count1, high_speed, etc.
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App