C Programming - Pointers - Discussion

Discussion Forum : Pointers - General Questions (Q.No. 2)
Can you combine the following two statements into one?
char *p;
p = (char*) malloc(100);
char p = *malloc(100);
char *p = (char) malloc(100);
char *p = (char*)malloc(100);
char *p = (char *)(malloc*)(100);
Answer: Option
No answer description is available. Let's discuss.
82 comments Page 9 of 9.

Chandana said:   1 decade ago
Thanks mahesh.

Prasanth said:   1 decade ago
Thanks kavya

Post your comments here:

Your comments will be displayed after verification.