Declare a pointer 'vPtr' that points to an object of type unsigned int - C++ Data Type

C++ examples for Data Type:Pointer

Description

Declare a pointer 'vPtr' that points to an object of type unsigned int

Demo Code

#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;
}

Result


Related Tutorials