Tag Archives: software

Blogging world

Blogs are a great way to just voice your opinions about anything.  This week i finally realized how to de-reference a pointer

Char* pointer;

char pointed_to=’X’;

pointer = &pointed_to;

cout<<*(pointer)<<endl; // will dereference the pointer address and print the output of pointed_to;

cout<<pointer<<endl; // will get the pointer address and print it out