1.

What is the difference between keywords and identifiers

Answer» \tSR. NO.KEYWORDIDENTIFIER1Keywords 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.2Specify the type/kind of entity.Identify the name of a particular entity.3It always starts with a lowercase letter.First character can be a uppercase, lowercase letter or underscore.4A keyword should be in lower case.An identifier can be in upper case or lower case.5A keyword contains only alphabetical characters.An identifier can consist of alphabetical characters, digits and underscores.6They 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.7No special symbol, punctuation is used.No punctuation or special symbol except ‘underscore’ is used.8Examples of keywords are: int, char, if, while, do, class etc.Examples of identifiers are: Test, count1, high_speed, etc.\t


Discussion

No Comment Found