1.

Which of the following is/are advantage(s) of Sequence Container arrays over C-like arrays?(a) Sequence Container arrays store its size within itself whereas C-like arrays do not(b) Sequence Container arrays are more efficient(c) Sequence Container arrays have no array decay problem whereas C-like arrays do have(d) All of the mentionedThis question was posed to me by my school teacher while I was bunking the class.My question comes from seq_con Array Class in portion Class Hierarchies, Library & Containers of C++

Answer» CORRECT choice is (d) All of the mentioned

Easiest EXPLANATION - Sequence Container arrays(a.k.a ARRAY CLASSES) somehow stores its SIZE and it can be implemented efficiently. Also, Array classes do not have Array decay problem.


Discussion

No Comment Found

Related InterviewSolutions