問題詳情
下列以 C 程式語言撰寫之程式執行後的輸出為何?#include <stdio.h> int main() { char input = 'B'; switch (input) { case 'A': printf("Choice A"); break; case 'B': printf("Choice B"); break; case 'C': printf("Choice C"); break; } return 0; }
(A) Choice A
(B) Choice B
(C) Choice C
(D)程式無法通過編譯
參考答案
答案:B
難度:適中0.593023
統計:A(1),B(52),C(6),D(16),E(0)
用户評論
【黃豐諭】評論
從程式中看出選擇B char input = '☆';...