mirror of
https://github.com/Kaehvaman/OAIP.git
synced 2025-02-07 12:58:24 +04:00
23 lines
188 B
C
23 lines
188 B
C
#include <stdio.h>
|
|
|
|
int x = 222;
|
|
|
|
void foo(int func()) {
|
|
printf("%d\n", func());
|
|
}
|
|
|
|
int bar() {
|
|
return 12345;
|
|
}
|
|
|
|
int bq() {
|
|
return x;
|
|
}
|
|
|
|
int main() {
|
|
|
|
foo(bar);
|
|
foo(bq);
|
|
|
|
return 0;
|
|
} |