int main() { int tab[2] = {3, 0}; int minimum = templateMin(tab, 2); std::cout << "templateMin(tab, 2) = " << minimum << std::endl; minimum = nonTemplateMin(tab, 2); std::cout << "nonTemplateMin(tab, 2) = " << minimum << std::endl; }
int main() { int tab[5] = {4, 8, 7, 3, 2}; // int tab[2] = {3, 0}; int minimum = templateMin(tab, 5); std::cout << "templateMin(tab, 5) = " << minimum << std::endl; minimum = nonTemplateMin(tab, 5); std::cout << "nonTemplateMin(tab, 5) = " << minimum << std::endl; }