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.

Sunil said:   1 decade ago
here p is constant bcz of usage of keyword const

Kumaran said:   1 decade ago
P is the constant... It defined in the outside of main function.

Shweta Dubey said:   1 decade ago
P is a pointer to a constant

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

ASHOK G said:   2 decades ago
I guess P is a pointer to a const char.

Jothi basu said:   2 decades ago
P is a character constant using pointer.


Post your comments here:

Your comments will be displayed after verification.