blob: e97dec3346600f9a5b912ebf48df8de14075d3de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <iostream>
#include "sales_item.hpp"
/*
*
* 2.25
*
*
*/
int main () {
int *p = nullptr;
int i = 10;
int &r = i;
// addr 10 10
std::cout << &p << " " << i << " " << r << std::endl;
int i2 = 11;
int *ip = 0; // AKA nullptr AKA NULL
std::cout << i2 << " " << &ip << std::endl;
int *ip2 = nullptr;
int ip3 = 99;
std::cout << ip3 << " " << &ip2 << std::endl;
return 0;
}
|