What happens when you attempt to compile and run the following code?
#include
using namespace std;
int main ()
{
int t[] = {1, 2 ,3 ,4 ,5};
vectorv1(t, t+5);
listl1;
l1.assign(v1.end(), v1.begin());
for(int i=0; i{cout<}cout<return 0;} Aprogram displays 5 4 3 2 1 Bprogram displays 1 2 3 4 5 Ccompilation error Dsegmentation fault runtime exception Show Suggested Answer Hide Answer Suggested Answer: E
cout<}cout<return 0;} Aprogram displays 5 4 3 2 1 Bprogram displays 1 2 3 4 5 Ccompilation error Dsegmentation fault runtime exception Show Suggested Answer Hide Answer Suggested Answer: E
}
cout<return 0;} Aprogram displays 5 4 3 2 1 Bprogram displays 1 2 3 4 5 Ccompilation error Dsegmentation fault runtime exception Show Suggested Answer Hide Answer Suggested Answer: E
return 0;
Limited Time Offer
25%
Off
Maryrose
2 days agoKenny
4 days agoCorazon
4 days agoColby
7 days agoMaryrose
12 days ago