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 are 2 ways of exporting a function from a dll?
Is swift better than c++?
Comment on c++ standard exceptions?
What is the fastest c++ compiler?
Why is c++ considered difficult?
Which is best ide for c++?
What is the size of a vector?
What is decltype c++?
Why do you use the namespace feature?
When should we use container classes instead of arrays?
Explain the volatile and mutable keywords.
Where do I find the current c or c++ standard documents?
Explain terminate() function?
What is a storage class? Mention the storage classes in c++.
Mention the ways in which parameterized can be invoked. Give an example of each.