题解 | #定义变量#
定义变量
http://www.nowcoder.com/practice/3ddbc410017a4da48f05a6c8619b32d2
using namespace std;
int main() {
char ch;
int now;
long test;
double doo;
printf("%d\n%d\n%d\n%d\n",sizeof(ch),
//sizeof->c++中计算变量所占内存大小的函数
sizeof(now),
sizeof(test),sizeof(doo));
// write your code here......
return 0;
}