Saturday, 12 March 2016

Write a statement that assigns the sum of the first and last elements of the array in Question 3 to the variable even.

Leave a Comment

Question:

4. Write a statement that assigns the sum of the first and last elements of the array in Question 3 to the variable even.

Answer:

int even = oddly[0] + oddly[4];

Source:

C++ Primer Plus Sixth Edition Chapter Review

If You Enjoyed This, Take 5 Seconds To Share It