Question: int i; short int * * array; int row = 2 5 ; int col = 1 0 ; if ( NULL = = (
int i;
short int array;
int row ;
int col ;
if NULL array short intmallocrow sizeofshort int
exit;
if NULL arrayshort intmallocrow col sizeofshort int
exit;
for i ; i row; i
arrayi array i col;
This code is used for
A allocating a dimension contiguous array on the heap
B allocating a dimension contiguous array on the heap
C allocating a dimension noncontiguous array on the heap
D allocating a dimension contiguous array on the heap
E allocating a dimension noncontiguous array on the heap
The total amount of memory required for this array storage is assume pointers require bytes
each, a short int requires bytes, an int requires bytes and a float requires bytes
A bytes
B bytes
C bytes
D bytes
E bytes
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
