Question: In c++ 1- Suppose that charList is a vector container and: charlist[]={A,B, C, D,E,F, *, %, $,&}; Further suppose that: lastElem=remove_if(charList.begin(), charlist.end(), isspace); ostream_iterator screen(cout,
In c++
1- Suppose that charList is a vector container and: charlist[]={A,B, C, D,E,F, *, %, $,&};
Further suppose that: lastElem=remove_if(charList.begin(), charlist.end(), isspace); ostream_iterator screen(cout, ); in which lastElm is a vector iterator into a vector container of type char.
What is the output of the following statement? copy(charList.begin(), lastElm, screen);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
