Question: How can the following code be improved using STL? const char* studentName[4] = {Sam, Alex, Bibo, Ali); std::vector studentName = {Sam, Alex, Bibo, Ali); std::list

How can the following code be improved using STL? const char* studentName[4] = {"Sam", "Alex", "Bibo", "Ali"); std::vector<:string> studentName = {"Sam", "Alex", "Bibo", "Ali"); std::list<:string> studentName = {"Sam", "Alex", "Bibo", "Ali"); = std::map<:string int> {{"Sam", 10}, {"Alex", 15}, {"Bibo", 20},{"Ali", 11}}; std::set<:string> studentName = {"Sam", "Alex", "Bibo", "Ali"); =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
