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
How can I make sure that my program is the only one accessing a file?
Explain 'bus error'?
Why use int main instead of void main?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is #line in c?
What is #define used for in c?
What is pointer to pointer in c language?
using for loop sum 2 number of any 4 digit number in c language
Write the control statements in C language
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
what is stack , heap ,code segment,and data segment
Do pointers need to be initialized?
What is pointer in c?
When should a type cast not be used?
What is union and structure in c?