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 the use of void main() in C++ language?
What is the difference between while and do while loop?
What is a manipulative person?
Is there structure in c++?
What is the sequence of destruction of local objects?
Can you please explain the difference between overloading and overriding?
Is c better than c++?
What is ios flag in c++?
What is the difference between passing by reference and passing a reference?
What is a class definition?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is constructor c++?
Describe private, protected and public?
Can java be faster than c++?