Sail E0 Webinar
Question

Can you combine the following two statements into one?

char *p;

p = (char*) malloc(100);


Options:
A .  char p = *malloc(100);
B .  char *p = (char) malloc(100);
C .  char *p = (char*)malloc(100);
D .  char *p = (char *)(malloc*)(100);
Answer: Option C

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers