what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / bhargav
Const char *P ->
declares a pointer through which you may be able to access
a char but you can not change it through the said pointer.
But the pointer itself can be changed.
char const *p ->
in this the value is constant
const char* const p ->
both address and value are constants
| Is This Answer Correct ? | 13 Yes | 22 No |
Post New Answer View All Answers
What are the different categories of functions in c?
What is dynamic dispatch in c++?
Why & is used in c?
what is ur strangth & weekness
shorting algorithmS
What are linked lists in c?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is %s and %d in c?
write a c program in such a way that if we enter the today date the output should be next day's date.
What is far pointer in c?
what does static variable mean?
What is difference between %d and %i in c?
Can you please explain the difference between malloc() and calloc() function?
Explain the difference between exit() and _exit() function?
Can we assign string to char pointer?