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

/*
 *
 * 4.14
 *
 *
 */

int main () {

	int i = 0;

	//if(42 = i) {} Not valid, error
	int ifs2 = i = 42;
	if(ifs2) { // evaluates as true because nonZero == true
		std::cout << "..." << std::endl;
	}
	
	return 0;
}