Is the following program legal? If so, what is the output?
#include
using namespace std;
int main( )
{
vector v(10);
int i;
for (i = 0; i <>
v[i] = i;
vector copy;
copy = v;
v[0] = 42;
cout <><>
cout
return 0;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here