190k views
4 votes
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 an expression whose value is the element in the array after the element that ip points to

User ZZzzZZzz
by
5.6k points

1 Answer

3 votes

Answer:

The expression of this question can be given as:

Expression:

*ip + 1

Explanation:

In this question, it is given that ip variable has been declared and initialized and the ip variable is in the first half of the array. It finds the expression whose value is after the element of the array that ip points. So the expression to this question is *ip + 1. Where * is used to define ip variable as a pointer and its value is increased by 1 that is given in the question.

User Hujaakbar
by
5.8k points