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 sum of the element that ip points to plus the next two elements

Respuesta :

Answer:

The expression for this question can be given as:

Expression:

ip + (ip + 1) + (*ip + 2)

Explanation:

In the question, it is given that the ip variable that is a pointer type variable has been declared and initialized. This variable result has been declared to be an array of 100 elements and it is also defined that the ip variable is an element of the first half of the array. So the expression of the sum of the elements that point the ip that is ip + (ip + 1) + (*ip + 2). In this expression, ip is a pointer variable that's value is increased by 1 and 2. and all the value will be added in the ip.  

Answer:

*(ip) + *(ip + 1) + *(ip + 2)

Explanation:

Ver imagen jizsac420
ACCESS MORE
EDU ACCESS