MCQOPTIONS
Saved Bookmarks
| 1. |
Point out the error in the following program. #include<stdio.h> #include<stdlib.h> int main() { int *a[3]; a = (int*) malloc(sizeof(int)*3); free(a); return 0; } |
| A. | Error: unable to allocate memory |
| B. | Error: We cannot store address of allocated memory in |
| C. | <i class="C-code">a</i> |
| D. | Error: unable to free memory |
| E. | No error |
| Answer» C. <i class="C-code">a</i> | |