MCQOPTIONS
Saved Bookmarks
| 1. |
Why do we write (int *) before malloc?int *ip = (int *)malloc(sizeof(int)); |
| A. | It is to inform malloc function about the data-type expected |
| B. | It is for the syntax correctness |
| C. | It is for the type-casting |
| D. | All of above |
| E. | None of these |
| Answer» D. All of above | |