1.)What does the following code print?
string a = “hello”;
string b = “class”;
cout << ((a == b) ? “school” :”panthers”);
——————————————————————
2.) The _________ keyword is used to designatea function that will not be allowed to alter the state of theobject it is invoked on.
Answer
1)panthers2)const
Please let me know if you have any doubts Please upvote this answer. Thanks!!