I think there are reserved keywords in C++ , why they are called ‘reserve keywords ‘ and categorized as different?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Words used by the language (
if,for,while,struct, etc.) are sometimes called reserved words or keywords. I suspect that many people also call them reserved keywords.However, there are also words that the Committee may want to use in the future but that aren’t currently used. I would consider these reserved keywords. In Java
gotois a reserved word that isn’t currently used (although I believe the idea is that it won’t ever be used). This kind of reserved keyword isn’t allowed as a variable name, function name,class,structorenumname, etc. But without any use in the language today, it wouldn’t really be allowed in valid C++ at all.