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 a catch statement?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
an integer constant must have atleast one a) character b) digit c) decimal point
Write a Program to find the largest of 4 no using macros.
What is a base class?
What is the cout in c++?
What c++ is used for?
What are the classes in c++?
Do class declarations end with a semicolon?
What does the ios::ate argument do?
Does c++ have a hash table?
Can we change the basic meaning of an operator in c++?
If there are two catch statements, one for base and one for derived, which should come first?
How does the copy constructor differ from the assignment operator (=)?
What do you mean by function and operator overloading in c++?