Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the declarations below representing 5x4 2D arrays, select all of the statements that will set the 3rd row, 4th element of the arrays to

Given the declarations below representing 5x4 2D arrays, select all of the statements that will set the 3rd row, 4th element of the arrays to 5.

  1. numbers 1 [2] [3] = 5;
  2. numbers 2 [2 * 4 + 3] = 5;
  3. numbers 3 [2] [3] = 5;
  4. numbers 1 [2 x 4 + 3] = 5;
  5. numbers 2 [2][3] = 5;
  6. numbers 3 [2 * 4 + 3] = 5;

int numbers1[5] [4]; int * numbers2 = malloc (5*4*sizeof(int)); int ** numbers3 = malloc (5 * sizeof(int *)); for (int r = 0; r < 5; r++) { numbers3[r] malloc(4 *sizeof(int)); }

Step by Step Solution

3.42 Rating (161 Votes )

There are 3 Steps involved in it

Step: 1

Answer 1 numbers 1 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Linear Algebra with Applications

Authors: Bernard Kolman, David Hill

9th edition

132296543, 978-0132296540

More Books

Students also viewed these Programming questions

Question

3 / 4 1 1 / 4 x Answered: 1 week ago

Answered: 1 week ago