const char *

char * const

What is the differnce between the above two?

Answer Posted / sahithi

const char* /*string is fixed pointer is not*/
char *const /*pointer is fixed string is not*/

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a syntax in c++?

600


What is anonymous object in c++?

626


Why do we use string in c++?

501


How do we balance an AVL Tree in C++?

624


What are static type checking?

620






What is c++ used for in games?

596


What parameter does the constructor to an ofstream object take?

603


Does c++ have a hash table?

532


What is stoi in c++?

690


What is difference between rand () and srand ()?

585


What are multiple inheritances (virtual inheritance)?

573


Difference between strdup and strcpy?

642


Does std endl flush?

601


What's the most powerful programming language?

580


What does new in c++ do?

558