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
Array base access faster or pointer base access is faster?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What does it mean to declare a member variable as static?
Write about the scope resolution operator?
What is the best c++ ide?
What is c++ hash?
program explaining feautures of c++
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Is facebook written in c++?
What is implicit conversion/coercion in c++?
Explain the volatile and mutable keywords.
What is the size of integer variable?
Explain the use of virtual destructor?
How would you call C functions from C++ and vice versa?
What is difference between malloc()/free() and new/delete?