

MCQOPTIONS
Saved Bookmarks
1. |
Point out the error in the following program._x000D_ #include_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ int *a[3];_x000D_ a = (int*) malloc(sizeof(int)*3);_x000D_ free(a);_x000D_ return 0;_x000D_ } |
A. | Error: unable to allocate memory |
B. | Error: We cannot store address of allocated memory in a |
C. | Error: unable to free memory |
D. | No error |
Answer» C. Error: unable to free memory | |