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
What does new do in c++?
Why use of template is better than a base class?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
What is c++ library?
Explain static and dynamic memory allocation with an example each.
What is namespace & why it is used in c++?
Why Pointers are not used in C++?
What you know about structures in C++?
which of the following is not an secondary constant a) array b) real c) union
What happens when you make call 'delete this;'?
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?
What are the vectors in c++?
How should a contructor handle a failure?
Difference between a homogeneous and a heterogeneous container
What is type of 'this' pointer? Explain when it is get created?