What is the difference among const char *mypointer &char *, C/C++ Programming

What is the difference among const char *myPointer and char *const myPointer?

 A: Const char *myPointer is a non constant pointer to constant data; whereas char *const myPointer is a constant pointer to non constant data.

 

Posted Date: 3/19/2013 9:03:18 AM | Location : United States







Related Discussions:- What is the difference among const char *mypointer &char *, Assignment Help, Ask Question on What is the difference among const char *mypointer &char *, Get Answer, Expert's Help, What is the difference among const char *mypointer &char * Discussions

Write discussion on What is the difference among const char *mypointer &char *
Your posts are moderated
Related Questions
steric in square

I want to take 1.1 as input but when I am declaring it as float the output is given as 1.1000000

write a program to calculate gross salary and net salary using hra da pf in c++

Is it possible to create your own header files? - Yes, it's possible to create a customized header file. - To do this, you just need to include function prototypes that you

Automatic Variables Automatic variables are variable which are explained within the functions. They lose their value when the function terminates. It can be accessed only in th

Reusability  Reusability means reusing code written earlier, may be from some earlier project or from the library. Reusing old code not only saves development time, but also sa

Using a Friend Using a friend function is quite easy. The following example explains a friend function to access members of two classes. class Bclass;


Ques.Implement a c/c++ program to find a shortest path between two nodes in a network?network should be taken as an adjacency matrix.

Describe what is actual arguments? - When certain functions are created and used to perform an action on some provided values, some values are required to be passed to them. Th