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 the difference between public, private, protected inheritance?

12 Answers   Wipro,


How can I improve my c++ skills?

0 Answers  


What is atoi in c++?

0 Answers  


Explain register storage specifier.

0 Answers  


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

0 Answers  






Why main function is special in c++?

0 Answers  


Does c++ support exception handling?

0 Answers  


What do you mean by inheritance in c++?

0 Answers  


What are the different types of Storage classes?

5 Answers  


What are shallow and deep copies?

0 Answers  


Difference between struct and class in terms of access modifier.

0 Answers  


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

0 Answers  


Categories