題目:練習函式呼叫,
程式分析:無,
實體:
1 #include <stdio.h> 2 void hello_world(void) 3 { 4 printf("Hello, world!\n"); 5 } 6 void three_hellos(void) 7 { 8 int counter; 9 for (counter = 1; counter <= 3; counter++) 10 hello_world();/*呼叫此函式*/ 11 } 12 int main(void) 13 { 14 three_hellos();/*呼叫此函式*/ 15 }
以上實體輸出結果為:
Hello, world! Hello, world! Hello, world!
感謝你的閱讀,請用心感悟!希望可以幫到愛學習的你!!分享也是一種快樂!!!請接力,,,
點擊查看原文,謝謝!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/17358.html
標籤:C
下一篇:C 實戰練習題目35 -字串反轉
