main.cpp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#include <iostream>
using namespace std;

int main()
{
    int i = 4;
    int* ip = &i;
    int* jp = new int(5);

    cout << *ip << endl;
    cout << *jp << endl;
    return 0;
}
Back to raw_pointers