---------- Program ---------------------- 1 #include <stdio.h> 2 3 int main(void); 4 5 int main(void) 6 { 7 printf("%f\n", 12.3456) 8 printf("%7f\n", 12.3456); 9 10 } ----------- Program END ------------------ $ gcc test.c test.c: 関数 `main' 内: test.c:8: error: 文法エラー before "printf"
---------- 実行例 -------------------- $ ./a.out How old are you? 24 1200Yen. ---------- 実行例ここまで -------------