Question
Why do we write (int *) before malloc?
int *ip = (int *)malloc(sizeof(int));
int *ip = (int *)malloc(sizeof(int));
Answer: Option B
Was this answer helpful ?
None.
Was this answer helpful ?
Submit Solution