#include <cstdio> template <typename typed> typed f() { return 2.7; } int main(void) { return !printf("%d %f", f<int>(), f<double>()); }
Standard input is empty
2 2.700000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!