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 |
What is struct c++?
write a program to insert an element into an array
Is java a c++?
Why can you not make a constructor as const?
How long it will take to learn c++?
What are the advantages of using const reference arguments in a function?
What are member functions used in c++?
What do you mean by call by value and call by reference?
Define a nested class. Explain how it can be useful.
What it is and how it might be called (2 methods).
What is null and void pointer?
What is a null object in c++?