What are the differences between reserved words and keywords in C++?
Is ‘main’ a reserved word or a keyword?
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.
The only thing I could think of that might differentiate the two is if a word was reserved for future use (i.e. not a keyword, but also not allowed for use). However, I couldn’t think of an exapmle off the top of my head…
Main is not a keyword per se, but it is usually required by C, C++, C#, and similar languages as the beginning execution point of your app. These langauges each define the role of main in the corresponding language specification.