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

What is struct c++?

0 Answers  


write a program to insert an element into an array

26 Answers   TCS,


Is java a c++?

0 Answers  


Why can you not make a constructor as const?

3 Answers  


How long it will take to learn c++?

0 Answers  






What are the advantages of using const reference arguments in a function?

0 Answers  


What are member functions used in c++?

0 Answers  


What do you mean by call by value and call by reference?

1 Answers  


Define a nested class. Explain how it can be useful.

0 Answers  


What it is and how it might be called (2 methods).

0 Answers  


What is null and void pointer?

0 Answers  


What is a null object in c++?

0 Answers  


Categories