In C++:
Examine the code segment. What will be printed?
If there are any errors indicate the nature of each error.
int a[7] = {31, 12, 32, 14, 25, 16, 27};
int *ptr;
ptr = & a[2];
for ( i=1; i<=5; i="">=5;>
cout < *(ptr="">
cout < a[0]="">< *ptr="">< *ptr="" -="" 2="">< *(ptr="" -1))=""><>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here