What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
template
void print(T start, T end) {
while (start != end) {
std::cout << *start << " "; start++;
}
}
int main()
{
int t1[] ={ 1, 7, 8, 4, 5 };
list
int t2[] ={ 3, 2, 6, 9, 0 };
list
l1.sort();
list
it++; it++;
l1.splice(l1.end(),l2, it, l2.end());
print(l1.begin(), l1.end()); cout<<"Size:"< print(l2.begin(), l2.end()); cout<<"Size:"< return 0; }
Argelia
4 months agoAdolph
5 months agoAnglea
5 months agoDyan
5 months agoAndree
5 months agoMisty
6 months agoGoldie
6 months agoBilly
6 months agoLaurel
6 months agoKeneth
6 months agoStephane
6 months agoPatti
6 months agoBrandon
6 months agoJoaquin
6 months agoRosina
11 months agoHubert
11 months agoBulah
11 months agoElden
10 months agoMinna
10 months agoTrinidad
10 months agoKina
11 months agoHerman
10 months agoOra
11 months agoShawn
11 months agoVeronika
12 months agoLavonna
10 months agoDaniel
11 months agoAltha
11 months agoJessenia
1 year agoLizette
1 year agoJessenia
1 year ago