Answer Posted / hrpynux@gmail.com
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 |
Post New Answer View All Answers
What is difference between array and vector in c++?
What is binary search in c++?
How many types of classes are there in c++?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What is pointer in c++ with example?
What is c++ namespace?
What is the purpose of templates in c++?
What is the auto keyword good for in c++?
When does a name clash occur in c++?
What does flush do?
Difference between pass by value and pass by reference?
Can I learn c++ as my first language?
Describe protected access specifiers?
How would you obtain segment and offset addresses from a far address of a memory location?
What are the methods of exporting a function from a dll?