1998-06-24から1日間の記事一覧

暗黙の初期化

C

明解C言語 入門編 > 6. 関数 > 暗黙の初期化 C #include <stdio.h>int fx = 0;void func(void) { static int sx; int ax; printf("%3d%3d%3d\n", ax, sx, fx); }int main(int argc, char* argv[]) { func(); }実行結果 T:\>lesson054\project1.exe 8802932 0 0</stdio.h>