1. |
|
|||||||
Answer: Option C Explanation: Prototype of malloc is ptr = (data type *)malloc(size); So in the above example as we need to allocate memory for char it can be done with the following statement: char *p = (char*)malloc(1000); // here p is a pointer of type char |
Post your comments here:
Name *:
Email : (optional)
Your comments will be displayed only after manual approval.