Question: Given the code below, which of the following statements are true? int numbers 1 [ 5 ] [ 4 ] ; int * numbers 2

Given the code below, which of the following statements are true?
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

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!