2.6k views
2 votes
All of the following are reserved keywords in C++ EXCEPT

Select one:

a. this

b. friend

c. class

d. for

e. tryorfail

User Jkavalik
by
6.0k points

1 Answer

4 votes

Answer:

e. tryorfail

Step-by-step explanation:

Following are reserved keywords in C++:

  • this - A reference to the current object
  • friend - Used to designate a friend class which has special access privileges for members of the class
  • class - A keyword used for defining a C++ class
  • for - Looping construct in C++

tryorfail is not a valid keyword in C++. The relevant keyword is try for exception handling.

User ScouseChris
by
5.1k points