What do you suppose is the value of the arithmetic expression:

data[2] + data[6]

A good answer might be:

23 --- data[2] contains a 14 and data[6] contains a 9, the sum is 23

Arithmetic Expressions

A slot of an array that contains a numeric type (such as int) can be used anywhere a numeric variable can be used. In an arithmetic expression such as the one in the question, the number in the designated slot of the array is used.

An arithmetic expression can contain a mix of literals, variables, and array slots. For example, if x contains a 10, then

(x + data[2]) / 4
evaluates to (10+14) / 4.

Here are some other legal statements:

data[0] = (x + data[2]) / 4 ;

data[2] = data[2] + 1;

x = data[3]++ ;

data[4] = data[1] / data[6]

QUESTION 4:

Assume that the array holds values as in the picture. What will be the result of executing the statement:

data[0] = data[6] + 8;

Click Here after you have answered the question