summaryrefslogtreecommitdiff
path: root/4p12.cpp
blob: c59fb7b4805f6da77e55b227adb3de28790f48bb (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>

/*
 *
 * 4.12
 *
 * These conditions make my head spin its actually so confusing to think about...
 */

int main () {

	int i = 0;
	int j = 9;
	int k = 10;

	// true == >0
	// false == 0
	// i != >0
	// AKA
	// i == 0
	//then print ...
	if(i != (j < k)) { // j < k is evaluated first
		std::cout << "..." << std::endl;
	}
	
	return 0;
}