const char *
char * const
What is the differnce between the above tow?.
Answer Posted / kamaljit singh
in the first case it is pointer to a constant (i.e the
address can be changed ,where as the content/value in that
address cannot be changed).
In the later case it is a constant pointer (i.e the address
cannot be changed ,where as the content/value in that
address can be changed).
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is maximum size of array in c?
Is it better to use malloc() or calloc()?
How to delete a node from linked list w/o using collectons?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
Define Spanning-Tree Protocol (STP)
Explain about block scope in c?
What is function prototype in c language?
What are pointers really good for, anyway?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What is a char in c?
What is file in c language?
How can I access an I o board directly?
What are identifiers in c?
What are global variables?
What is the difference between union and structure in c?