Friday 5 April 2013

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

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

Const char *myPointer is a non constant pointer to constant data; while char *const myPointer is a constant pointer to non constant data.



Blog Author: Vijay Kumar

No comments:

Post a Comment