what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / singamsa
const char*p - p is pointer to the constant character i.e
value in that address location is constact
char const *p - same as above
const char* const p - p is the constant pointer which
points to the constant string, both value and address are
constants
| Is This Answer Correct ? | 115 Yes | 49 No |
Post New Answer View All Answers
When should the volatile modifier be used?
Why should I prototype a function?
Write a code to generate a series where the next element is the sum of last k terms.
What is the size of array float a(10)?
How can I read data from data files with particular formats?
Explain null pointer.
What are structure types in C?
In which language linux is written?
Write a code on reverse string and its complexity.
What is wrong with this initialization?
What are different types of variables in c?
What is sizeof array?
What is union in c?
What are the loops in c?
Using which language Test cases are added in .ptu file of RTRT unit testing???