fbpx

C++ Interview Questions

Bjarne-stroustrup
 
Prev1 of 17Next


According to the C++11 standard, what is the output of this program?

template <class T> void f(T &i) { std::cout << 1; }

template <> void f(const int &i) { std::cout << 2; }

int main() {
	int i = 42;
	f(i);
}

Answer

Our team found a curious site for our readers that are fans of online gaming, a rather exciting site that provides the latest gaming technology. Casinodots.com is the site, they compile the best reviews of MGA casino utan svensk licens sites. This site might pique your curiosity and you can win extra money!