array is a pointer-to-pointer-to-int at the first


Array is a pointer-to-pointer-to-int: at the first level, it points to a block of pointers, one for each row. That first-level pointer is the first one we allocate; it has nrows elements, with each element big enough to hold a pointer-to-int, or int *. If we successfully allocate it, we then fill in the pointers (all nrows of them) with a pointer (also obtained from malloc) to ncolumns number of ints, the storage for that row of the array.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: array is a pointer-to-pointer-to-int at the first
Reference No:- TGS0305544

Expected delivery within 24 Hours