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;
Discussion:
36 comments Page 1 of 4.
Jothi basu said:
2 decades ago
P is a character constant using pointer.
ASHOK G said:
2 decades ago
I guess P is a pointer to a const char.
Vinay said:
1 decade ago
P is a character constant.
Shweta Dubey said:
1 decade ago
P is a pointer to a constant
Kumaran said:
1 decade ago
P is the constant... It defined in the outside of main function.
Sunil said:
1 decade ago
here p is constant bcz of usage of keyword const
Santhosh said:
1 decade ago
her p is a pointer to a constant character
Hngn said:
1 decade ago
p is constant chracter pointer
Vikas Sharma said:
1 decade ago
P is a constant pointer.
Ana said:
1 decade ago
The answer is no clear to me. Can some one please explain.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers