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 3 of 4.
Ravi said:
1 decade ago
P is a pointer to a constant.
Because,
Const char *p;.
Because,
Const char *p;.
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
Chery said:
1 decade ago
P is a pointer to constant of type char.
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.
Atul said:
1 decade ago
P is the pointer to char constant
Hngn said:
1 decade ago
p is constant chracter pointer
Venkatesh said:
8 years ago
Can someone explain clearly?
Shweta Dubey said:
1 decade ago
P is a pointer to a constant
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers