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 is the size of structure in c?
Can we use any name in place of argv and argc as command line arguments?
What are the differences between Structures and Arrays?
What is the significance of scope resolution operator?
how can I convert a string to a number?
What is ambagious result in C? explain with an example.
What are the 4 data types?
c program to compute AREA under integral
What is pass by reference in functions?
What is the use of c language in real life?
Explain what are linked list?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What is the most efficient way to store flag values?
Write a program that accept anumber in words
What are structures and unions? State differencves between them.