Difference between const char* p and char const* p?
Answer Posted / hrpynux@gmail.com
There is no difference between const char *p and char const *p as both are pointer to a const char and position of '*'(asterik) is also same. 2. char *const ptr : This is a constant pointer to non-constant character. You cannot change the pointer p, but can change the value pointed by ptr.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is token c++?
What are the various arithmetic operators in c++?
What is c++ library?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
What is the difference between global int and static int declaration?
Explain what are single and multiple inheritances in c++?
If all is successful, what should main return a) 0 b) 1 c) void
Explain terminate() and unexpected() function?
Explain the concept of dynamic allocation of memory?
Mention the ways in which parameterized can be invoked. Give an example of each.
Who calls main function?
How will you call C functions from C ++ and vice-versa?
Explain static and dynamic memory allocation with an example each.
Explain Memory Allocation in C/C++ ?
How is computer programming useful in real life?