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 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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers