1 Following Code Print String Hello String B Class Cout B School Panthers Q37080777

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!!

Please let me know if you have any doubts Please upvote this answer. Thanks!!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.