summaryrefslogtreecommitdiff
path: root/2p36.cpp
blob: d7505d21720f5a068efeac4c9b98d3b54f4e5840 (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.36
 *
 *
 */

int main () {

	int a = 3;
	int b = 4;
	decltype(a) c = a; // int // c == 3
	decltype((b)) d = a; // int& // d == 3
	++c; // 4
	++d; // 4
	std::cout << c << " <c\n" << d << " <d" << std::endl;
	std::cout << b << std::endl;
	return 0;
}