Pointer

Here are examples about how you can declare pointer in the programming language C++:

char* p;             //p is a pointer to char
char const* p;       //p is a pointer to const char
const char* p;       //p is a pointer to const char
char* const p;       //p is a const pointer to char
char const* const p; //p is a const pointer to const char
const char* const p; //p is a const pointer to const char

It might look strange by first reading :)

If you want to read more about pointers I refer you to a A Tutorial on Pointers and Arrays in C.

  • Delicious
  • Digg
  • Technorati Favorites
  • Reddit
  • LinkedIn
  • Facebook
  • Spurl
  • Twitter
  • Webnews
  • YiGG
  • MySpace
  • Yahoo Bookmarks
  • FriendFeed
  • Google Bookmarks
  • LiveJournal
  • Share/Bookmark

Leave a Comment

Your email is never published nor shared.

(required)