Constant pointer
-
Hi Can anyone tell me the difference between constant pointer and pointer to a constant. Please tell me the situation in which they are used. Thanks in advance
-
Hi Can anyone tell me the difference between constant pointer and pointer to a constant. Please tell me the situation in which they are used. Thanks in advance
ragavan wrote:
difference between constant pointer and pointer to a constant
isn't what you say descriptive enough ?! :-D a const pointer cannot be modified, while a pointer to const points to a memory ary which is read-only
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
Hi Can anyone tell me the difference between constant pointer and pointer to a constant. Please tell me the situation in which they are used. Thanks in advance
[18.5] What's the difference between "const Fred* p", "Fred* const p" and "const Fred* const p"?[^]
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.