fork download
  1. #include <cstdio>
  2.  
  3. struct call_printf {
  4. typedef int printf_t( char const *, ... );
  5. operator printf_t & () { return std::printf; }
  6. } printf_2;
  7.  
  8. int main() {
  9. printf_2( "hello %s", "world!" );
  10. }
  11.  
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
hello world!