C Plus Plus Miscellaneous - Study Mode

[#311] What is the use of is_same() function in C++?
Correct Answer

(B) To check whether two variables have the same characteristics

[#312] What type of reference should be used in vector arithmetic?
Correct Answer

(B) const

[#313] Which value is pointed out first in heap?
Correct Answer

(B) Highest value

[#314] Which of the following(s) is/are the correct way of assigning values to a forward_list f?
Correct Answer

(C) both f.assign({1,2,3,4,5}) and f.assign(10,5)

[#315] Which of the following operators are overloaded for functors?
Correct Answer

(B) ()