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

True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2094


How to access a variable of the structure?

771


Which field is used in c++?

820


Why cstdlib is used in c++?

775


How the endl and setw manipulator works?

745


What are protected members in c++?

857


Why do we need function?

780


By using c++ with an example describe linked list?

792


Where and why do I have to put the "template" and "typename" keywords?

784


Should the this pointer can be used in the constructor?

763


What is an accessor in c++?

817


Explain the concept of copy constructor?

802


What is ios :: in in c++?

820


Which format specifier is used for printing a pointer value?

774


What is the use of setfill in c++?

788