/*
CS371p: Quiz #9 (5 pts)
*/

/* -----------------------------------------------------------------------
1. What is the output of the following program?
   For each output specify the value of T.
   (4 pts)

f(T&) int
f(const T&) double
f(const T&) char*
*/

#include <iostream> // cout, endl

using namespace std;

template <typename T>
void f (const T&) {
    cout << "f(const T&)" << endl;}

template <typename T>
void f (T&) {
    cout << "f(T&)" << endl;}

int main () {
    int i = 2;
    f(i);

    const double j = 3.45;
    f(j);

    f("abc");

    return 0;}


syntax highlighted by Code2HTML, v. 0.9.1