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


Please Help Members By Posting Answers For Below Questions

Is swift a good first language?

588


What is nested class in c++?

520


Difference between delete and free.

614


What is the full form of india?

568


List the issue that the auto_ptr object handles?

612






How much do c++ programmers make?

566


Explain storage qualifiers in c++.

620


What is a static element?

577


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

571


What character terminates all character array strings a) b) . c) END

672


Is c++ proprietary?

582


What are the differences between java and c++?

528


What is switch case in c++ syntax?

624


Can we use this pointer in a class specific, operator-overloading function for new operator?

613


What is the iunknown interface?

677