Assume that ip has been declared to be a pointer to int and that result has been declared to be an array of 100 elements. Assume further that ip has been initialized to point to an element in the first half of the array. Write a statement that makes ip point to the next element in the array.

Assume that ip has been declared to be a pointer to int and that result has been declared to be an array of 100 elements. Assume  further that ip has been initialized to point to an element in the first half of the array. Write a statement that makes ip point to the next element in the array.

LANGUAGE: C++

CHALLENGE:

Assume that ip has been declared to be a pointer to int and that result has been declared to be an array of 100 elements. Assume further that ip has been initialized to point to an element in the first half of the array. Write a statement that makes ip point to the next element in the array.

SOLUTION:



ip++;

Add comment