MCQOPTIONS
Saved Bookmarks
| 1. |
Point out the correct statement which correctly allocates memory dynamically for 2D array following program? |
| A. | p = (int*) malloc(3, 4); |
| B. | p = (int*) malloc(3*sizeof(int)); |
| C. | p = malloc(3*4*sizeof(int)); |
| D. | p = (int*) malloc(3*4*sizeof(int)); |
| Answer» E. | |