const char *

char * const

What is the differnce between the above two?

Answer Posted / chithra

const char* is a constant pointer and char * const is
poiter to constant.

Is This Answer Correct ?    5 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use string in c++?

699


What is the use of namespace std in C++?

812


Give 10 points of differences between C & C++.

838


Why is standard template library used?

775


What is the protected keyword used for?

839


Who made c++?

805


What is a pdb file?

737


If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

790


What is the difference between a declaration and a definition?

801


What are c++ templates used for?

856


Define a pdb file.

820


Write a program to find the reverse Fibonacci series starting from N.

804


What is stoi in c++?

907


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

894


Differentiate between a constructor and a method in C++.

762