const char *

char * const

What is the differnce between the above two?

Answer Posted / atreyee

char * const, the pointer is declared as constant.
const char *, the pointer is not constant.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expression parser in c++

1898


Which function cannot be overloaded c++?

587


What is set in c++?

666


Can member data be public?

605


How are pointers type-cast?

655






Explain the operation of overloading of an assignment operator.

702


How should runtime errors be handled in c++?

617


Out of fgets() and gets() which function is safe to use and why?

735


What is virtual destructor? What is its use?

586


Explain one-definition rule (odr).

657


Difference between overloading vs. Overriding

597


Can I learn c++ without c?

613


How many ways can a variable be initialized into in C++?

609


What is #include iostream h in c++?

632


What are containers in c++?

577