1) int const* p
const int * p
both indicates “p” is a pointer that points to a constant integer
Hence “(*p)++ “ , “(*p)-- “ are not possible
2)int * const p
2)int * const p
indicates that p is constant pointer and it contains the address of an integer.
Hence “p++”, “p --” are not possible
No comments:
Post a Comment