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 the difference between cin.read() and cin.getline()?

792


Is c++ high level programming language?

877


What do you understand by pure virtual function? Write about its use?

757


Why is c++ a mid-level programming language?

777


Why main function is special in c++?

859


Explain the different access specifiers for the class member in c++.

739


What is const in c++?

784


What is an iterator?

906


What is an inline function in c++?

837


What are the three forms of cin.get() and what are their differences?

825


How can you specify a class in C++?

994


Why is main an int?

728


How does java differ from c and c++?

719


What are built-in functions? What is the syntax for the definition?

791


What is the full form of dos?

764