Difference between const char* p and char const* p?



Difference between const char* p and char const* p?..

Answer / 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

More C++ General Interview Questions

If a header file is included twice by mistake in the program, will it give any error?

0 Answers  


What is the difference between set and map in c++?

0 Answers  


What does count ++ do in c++?

0 Answers  


Can we inherit constructor in c++?

0 Answers  


what is the emaning of '#include" "'?

5 Answers  


What is a catch statement?

0 Answers  


Should I learn c or c++ or c#?

0 Answers  


Explain the use of vtable.

0 Answers  


What is the difference between the parameter to a template and the parameter to a function?

0 Answers  


What is the difference between = and == in C?

20 Answers   Christ University, Intel,


How do you clear a buffer in c++?

0 Answers  


What is the difference between equal to (==) and assignment operator (=)?

0 Answers  


Categories