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

/*
 *
 * 6.11
 *
 *
 */

void resettozero(int &i) {

	i = 0;
}

int main () {

	int i = 2132;
	std::cout << i << std::endl;
	resettozero(i);
	std::cout << i << std::endl;
	return 0;
}