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

 

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

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)
Available when: Unlimited - Due to: Unlimited
| 15 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)
Available when: Unlimited - Due to: Unlimited
| 12 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)
Available when: Unlimited - Due to: Unlimited
| 9 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)
Available when: Unlimited - Due to: Unlimited
| 11 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)
Available when: Unlimited - Due to: Unlimited
| 10 views
9,012 questions
77,062 answers
52,721 comments
2,239 users