题解 | #定义变量#
定义变量
http://www.nowcoder.com/practice/3ddbc410017a4da48f05a6c8619b32d2
#include #include using namespace std; int main() { char a; int b; long c; double d; cin >> a >> b >> c >> d;
cout << sizeof(a)<<endl<<sizeof(b)<<endl<<sizeof(c)<<endl<<sizeof(d)<<endl;
return 0;
}