3 like 0 dislike
208 views

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);

     }

 

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

[Normal] Fill in the blank - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21856 - Available when: Unlimited - Due to: Unlimited
| 208 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.71.254.155
©2016-2024

Related questions

4 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21894 - Available when: Unlimited - Due to: Unlimited
| 212 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 6, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21855 - Available when: Unlimited - Due to: Unlimited
| 222 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21849 - Available when: Unlimited - Due to: Unlimited
| 227 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21841 - Available when: Unlimited - Due to: Unlimited
| 206 views
3 like 0 dislike
0 answers
12,783 questions
183,443 answers
172,219 comments
4,824 users