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

/*
 *
 * 2.18
 *
 *
 */

int main () {

	int myval = 10;
	int *point = nullptr;
	std::cout << "myval: " << myval << std::endl;
	point = &myval;
	*point = 1000;
	std::cout << "myval: " << myval << "\n*point: " << *point
			  << "\npoint: " << point << "\n&myval: " << &myval
			  << std::endl;
	
	return 0;
}