課程
/后端開發(fā)
/C
/C語言入門
printf("%c\n",money>=cost ?'y' : 'n');為什么'y'在?:中間 還有后面為什么有‘n'
2018-09-21
源自:C語言入門 3-9
正在回答
三目運算符。
知道了
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
2 回答printf( "%c\n",money>=cost ? ‘y’ :‘n’ );
2 回答為什么printf("%c\n",money>=cost?"y":"n");的y和n不能用雙引號括起來
3 回答printf("%c\n",money>=cost?'y':'n');為什么這里不加分號?
2 回答printf("%c\n",cost<=money?'y':'n' );這句語句中'y'與'n'之間為甚么是冒號
3 回答請問大家,為什么輸出時printf("%c\n",money>=cost ? 'y':'n'); 編程不對?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-09-21
三目運算符。
2018-09-21
知道了