C++ New And Delete Question:
Download Questions PDF

char * const ptr1 = "nice";

//this is example of ,

a) constant pointer
b) pointer to a constant
c) None of above
d) Both of above

Answer:

a) constant pointer

Download C++ New And Delete Interview Questions And Answers PDF

Previous QuestionNext Question
C++ supports ….

a) constant pointer
b) pointer to a constant
c) None of above
d) Both of above
int const *ptr1 = &m;

// this is example of,

a) Constant pointer
b) Pointer to a constant
c) Both of above
d) None of above