C++ Notes

Const and Pointers

char* const cp;   // const pointer to char
char const* pc;   // pointer to const char
const char* pc2;  // pointer to const char

-- RyanReece - 24 Sep 2008


This topic: Sandbox > TWikiUsers > RyanReece > RyanReeceSandbox > CppNotes
Topic revision: r2 - 2008-10-11 - RyanReece
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback