Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <locale.h>
- double(*f)();
- #define WaitPls sleep(2);
- void Test() {
- double tmp(){ return 42; };
- printf("tmpAdress: %p\n", tmp);
- printf("tmp = "); printf("%f\n", tmp());
- WaitPls
- f = tmp;
- printf("fAdress: %p\n", f);
- printf("f = "); printf("%f\n", f());
- WaitPls
- }
- int main(void) {
- printf("Test!\n");
- WaitPls
- Test();
- printf("fArdess_main: %p\n", f);
- printf("f_main = "); printf("%f\n", f());
- WaitPls
- printf("Omae wa mou shindeiru\n");
- WaitPls
- printf("fArdess_main: %p\n", f);
- WaitPls
- printf("NANI?!\n");
- WaitPls
- printf("f_main = "); printf("%f\n", f());
- WaitPls
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement