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

/*
 *
 * 2.3 and 2.4
 *
 *
 */

int main () {
	
	unsigned u = 10, u2 = 42;
	std::cout << u2 - u << std::endl; // 32
	std::cout << u - u2 << std::endl; // big ass number
	int i = 10, i2 = 42;
	std::cout << i2 - i << std::endl; // 32
	std::cout << i - i2 << std::endl; // -32
	std::cout << i - u << std::endl; // 0
	std::cout << u - i << std::endl; // 0
	return 0;
}