Difference between const char* p and char const* p?
There is no difference between const char *p and char const *p as both are pointer to a const char and position of '*'(asterik) is also same. 2. char *const ptr : This is a constant pointer to non-constant character. You cannot change the pointer p, but can change the value pointed by ptr.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain how to initialize a const member data.
Write a program which uses Command Line Arguments
Explain the volatile and mutable keywords.
What are smart pointer? Whats its use?
What is the this pointer?
When must you use a pointer rather than a reference?
write a function signature with various number of parameters.
Should a constructor be public or private?
What is ctime c++?
What is a c++ map?
Difference between Top down and bottom up approaches for a given project ?
14 Answers BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,
In what situations do you have to use initialization list rather than assignment in constructors?