There are certain predefined words as part of C programming language that have a special meaning and purpose. They are called reserved words or keywords.The user (programmer) cannot redefine these keywords, i.e.,the user cannot change their spellings or add new ones to the C programming language.All reserved words in C are formed using only the lowercase letters.Keywords have special meaning and purpose, so they cannot be used as variable names.C language has 32 reserved words as per ANSI standards. They are as given below:auto break case char const continue default do double else enum externfloat for goto ifint long register returnshort signed sizeof staticstruct switch typedef union unsigned void volatile whileSelect the correct statements from the given statements.ANSI C has 32 reserved words.Reserved words have predefined meaning in the system and they are known to the C compilerKeywords can be used as variable names.The meaning of keywords can be redefined.
Question
There are certain predefined words as part of C programming language that have a special meaning and purpose. They are called reserved words or keywords.The user (programmer) cannot redefine these keywords, i.e.,the user cannot change their spellings or add new ones to the C programming language.All reserved words in C are formed using only the lowercase letters.Keywords have special meaning and purpose, so they cannot be used as variable names.C language has 32 reserved words as per ANSI standards. They are as given below:auto break case char const continue default do double else enum externfloat for goto ifint long register returnshort signed sizeof staticstruct switch typedef union unsigned void volatile whileSelect the correct statements from the given statements.ANSI C has 32 reserved words.Reserved words have predefined meaning in the system and they are known to the C compilerKeywords can be used as variable names.The meaning of keywords can be redefined.
Solution
The correct statements from the given statements are:
- ANSI C has 32 reserved words.
- Reserved words have predefined meaning in the system and they are known to the C compiler.
The incorrect statements are:
- Keywords can be used as variable names. This is incorrect because keywords are reserved and cannot be used as variable names.
- The meaning of keywords can be redefined. This is incorrect because the meaning of keywords is fixed and cannot be changed.
Similar Questions
1. _________are words that a programming language has set aside for its own use ?Control words Control structures Reserved words Reserved keys
How many keywords are there in C programming?
What are the character set of C (keywords)
Which of the following is true for variable names in C?a.They can contain alphanumeric characters as well as special charactersb.It is not an error to declare a variable to be one of the keywords(like goto, static)c.Variable names cannot start with a digitd.Variable can be of any length
VariablesWhich of the following is true for variable names in C?OptionsIt is not an error to declare a variable to be one of the keywords (like goto, static)Variable names cannot start with a digitVariable can be of any lengthThey can contain alphanumeric characters as well as special characters
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.