题目 如何判断一个数n是否是2的k次方?注意:不用求K是多少,只需要判断,请编写函数实现 答案 #include<stdio.h> int check(int n)//是就返回1否则返回0 { int count = 0; while (n)