sa*****@yahoo.co.in writes:
I understand the meaning and usage of pointers to constant characters
and constant pointers to characters, however i often get confused with
the syntax of expressing them, can anyone help me out with few examples?
See if you can find a program called "cdecl".
% cdecl
Type `help' or `?' for help
cdecldeclare a as pointer to char
char *a
cdecldeclare b as const pointer to char
char * const b
cdecldeclare c as pointer to const char
const char *c
cdecldeclare d as const pointer to const char
const char * const d
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.