#include <bits/stdc++.h>
using namespace std;
int print(int e) {
cout << e << endl;
return e * 2;
}
void test(int a, int ( * function)(int e)) {
cout << function(a) << endl;
}
int main() {
test(1234, print);
return 0;
}
输出
1234
2468