C++ examples for Data Type:Pointer
Declare a pointer 'vPtr' that points to an object of type unsigned int
#include <iomanip> #include <iostream> using namespace std; int main(int argc, const char *argv[]) { const int SIZE = 5; unsigned int x = 9; unsigned int *vPtr = &x; cout << *vPtr;/* ww w.ja v a 2 s . c om*/ return 0; }