const char *
char * const
What is the differnce between the above two?
Answer Posted / vidushi
Both are the method to declare a character pointer. but char
*const means pointer is sticked to accept a single address
but in case of const char * means u can assign it to
different variable address to it.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is the difference between function overloading and operator overloading?
What is malloc in c++?
What do the keywords volatile and mean mutable?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
Can we use pointers in c++?
How many types of scopes are there in c++?
What is ctime c++?
Who made c++?
Which is better c++ or java?
What is a rooted hierarchy?
What is a pointer how and when is it used?
What does it mean to declare a destructor as static?
What are the various oops concepts in c++?
What is isdigit c++?
Do you know what are pure virtual functions?