3 喜歡 0 不喜歡
113 瀏覽

sum = $1 ,  rmul = $2 , k = $3     

     int mul();

     int k = 5;

     void main(){

           int i, rmul, sum = 0;

           for( i = 0 ; i < 5 ; i++ ) {

                int k = 10; sum += 2; rmul = mul(); k++;

           }

           printf("sum =%d, mul =%d, k =%d\n",sum,rmul, k);

     }

     int mul() {

           static int mul = 1;

           mul += mul; return(mul);

     }

 

參考書籍:旗標無痛學習教本

[正常] 克漏字填空 - 最新提問 分類:Introduction to Computer Programming I (C) | 用戶: (20.9k 分)
ID: 21856 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 113 瀏覽
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.130.83
©2016-2024

相關問題

4 喜歡 0 不喜歡
0 回答
[正常] 克漏字填空 - 最新提問 2月 11, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21894 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 108 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] 克漏字填空 - 最新提問 2月 6, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21855 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 130 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] 克漏字填空 - 最新提問 2月 5, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21849 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 117 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] 克漏字填空 - 最新提問 2月 5, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21841 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 122 瀏覽
3 喜歡 0 不喜歡
0 回答
12,783 問題
183,443 回答
172,219 留言
4,824 用戶