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

/*
 *
 * 4.33
 *
 *
 */

int main () {

	bool someValue = true;
	int res;
	int x = 1;
	int y = 1;
	// (sameValue ? (++x, ++y) : --x), --y
	res = someValue ? ++x, ++y : --x, --y;
	std::cout << res << " res"<< std::endl;
	std::cout << x << " x" << std::endl;
	std::cout << y << " y" << std::endl;
	
	return 0;
}