*const char* a* is *equivalent* to *char const * a*

A simple method which most people use in coding is that const is written
after the value which needs to be constant.
So,
*char const *a* means a is a pointer that points to a character which is a
constant i.e you can not change the value which a points to, however you
can change values for a i.e different addresses can be applied to a.
and
*char *const a*  means a is a constant pointer to character i.e you can
change the values pointed by a, however you can not change the values i a
i.e once a is assigned an address, a can not be changed.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to