PLEASE TRACE BY HAND OR EXPLAIN WHAT EACH VALUE IS ASSIGNED TO
/*SELECT the CODE SEGMENT that will use the pointer variablepto set all elements of the array to zero. (Note: ONLY POINTER NOTATION CAN BE USED TO ANSWER THIS QUESTION.) */
#include
usingnamespacestd;
intmain()
{
intarray[25];
int*p, i;
// (a)
for(i = 0; i < 25;="">
array[i] = 0;
}
// (b)
p = &array[0];
*p = 0;
// (c)
p = array;
// (d)
i = 0;
for(p = &array[0]; p < &array[0]="" +="" 25;="">
coutendl"That's all there is!";
system("Pause");
return0;
}//end main
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here