Difference between const char* p and char const* p?
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 |
How many types of comments are there in c++?
What is a conversion constructor?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is a namespace in c++?
Explain the difference between abstract class and interface in c++?
Will rust take over c++?
What are friend functions?
Distinguish between new and malloc and delete and free().
What are the effects after calling the delete this operator ?
How do you establish an is-a relationship?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What c++ is used for?