C Programming - Pointers - Discussion

Discussion Forum : Pointers - General Questions (Q.No. 2)
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
Explanation:
No answer description is available. Let's discuss.
Discussion:
82 comments Page 7 of 9.

Nagarajan said:   2 decades ago
I want clear details from pointers with example.

Suma sahithi said:   1 decade ago
Thanks Mahesh and Kavyasri for the explanation.

Vikrant said:   1 decade ago
Thanks Kavyashree. Yours explanation was good.

Krishna said:   1 decade ago
Can you combine two statements in pointers.

Devi said:   1 decade ago
I want difference for pointer in c and c++?

Krishna said:   1 decade ago
Can you explain pointe def and array def.

Saran said:   1 decade ago
Here we have to allocate space for char.

Sudhagar said:   1 decade ago
I need more explanation about pointers?

Chinna said:   2 decades ago
If there is allocated space in char p.

Pooja said:   8 years ago
Not getting it, Explain it in detail.


Post your comments here:

Your comments will be displayed after verification.