View the step-by-step solution to:


a.png'm kind of confused why this produces when I run it 19 to be the

value of a[0][1]. shouldn't it be 16.


int main() {
srand (time (NULL ) );
int a [3] [4];
int fill=15;
for (int r=0;r<3;r++){
for (int c=0; c<4; c#+){
a[c][r] = fill;
cout <<" "<< a[c][r];
cout << endl;
cout << a[0] [1] << endl;
return 0;

Top Answer

Your c and r variables are... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question