?? ex9-4.c
字號:
#include <stdio.h>
int *f1() { static int s = 12345 ; return &s ; }
int *f2() { auto int a = 12345 ; return &a ; }
void Demo(int *(*f)())
{
int *p = (*f)() ;
printf("Address=%08X, Contents=%d\n", p, *p) ;
printf("Address=%08X, Contents=%d\n", p, *p) ;
printf("\n") ;
}
int main() { Demo(f1) ; Demo(f2) ; return 0 ; }
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -