Saturday
March 25, 2017

Post a New Question

Posted by on .

Thank You Steve For All The Help!
(If its you helping me with this one)

1.)

Consider the following array definition:

int values[ 5] = { 4, 7, 6, 8, 2 };

What does the following statement display?
cout << ( values[ 2] + values[ 3]) << endl;

2.)

Consider the following array definition:

int values[ 5] = { 4, 7, 6, 8, 2 };

What does the following statement display?
cout << ++ values[ 1] << endl;

  • Computers C++ (2) - ,

    14
    7


    Have you tried actually running the code?
    As my first boss used to say, "One measurement is worth a thousand expert opinions."

Answer This Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Post a New Question