3 like 0 dislike
115 views
if (y < 0) x = -y; else x = y; 利用 ?: 來實現,可寫成:

 

參考書籍:旗標無痛學習教本
[Normal] Multichoice - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21837 - Available when: Unlimited - Due to: Unlimited
| 115 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.134.215
©2016-2023

Related questions

3 like 0 dislike
0 answers
[Normal] Multichoice - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21945 - Available when: Unlimited - Due to: Unlimited
| 192 views
3 like 0 dislike
0 answers
[Normal] Multichoice - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21917 - Available when: Unlimited - Due to: Unlimited
| 187 views
3 like 0 dislike
0 answers
[Normal] Multichoice - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21914 - Available when: Unlimited - Due to: Unlimited
| 168 views
3 like 0 dislike
0 answers
[Normal] Multichoice - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21913 - Available when: Unlimited - Due to: Unlimited
| 202 views
3 like 0 dislike
0 answers
[Normal] Multichoice - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21912 - Available when: Unlimited - Due to: Unlimited
| 230 views
14,692 questions
236,721 answers
212,938 comments
5,696 users