summaryrefslogtreecommitdiff
path: root/pointertest.cpp
blob: 2a2210d421c16cc8d0a6da660341e1ba2fcd5345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include "sales_item.hpp"

/*
 *
 * Description
 *
 *
 */

int main () {

	int val = 929992;
	int *pi = nullptr;
	int **pi2 = nullptr;
	pi = &val;
	pi2 = &pi;
	std::cout << &pi << " " << pi2 << std::endl;
	std::cout << val << " " << *pi << " " << **pi2 << std::endl;
	return 0;
}