# C語言題庫-058 一語句實現x是否爲2 的若干次冪的判斷。 【參考答案】 ``` void mai n() { i nt a; scanf(“%d”,&a); printf(“%c”,(a)&(a-1)?’n’:’y’); // 若是打印y,否則n } ```