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; }