C Programming - Typedef - Discussion

Discussion Forum : Typedef - General Questions (Q.No. 2)
2.
In the following code what is 'P'?
typedef char *charp;
const charp P;
P is a constant
P is a character constant
P is character type
None of above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
36 comments Page 4 of 4.

Pooja said:   6 years ago
I think p is constant only.

Jayesh said:   4 years ago
I agree with you @Santosh.

Vinay said:   1 decade ago
P is a character constant.

Vikas Sharma said:   1 decade ago
P is a constant pointer.

Muneesh said:   8 years ago
How is this possible?

Lavanya said:   1 decade ago
What is char P?


Post your comments here:

Your comments will be displayed after verification.