题解 | #定义变量#
定义变量
https://www.nowcoder.com/practice/3ddbc410017a4da48f05a6c8619b32d2
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
char a ;
int b ;
long c ;
double d ;
a = sizeof(a);
b = sizeof(b);
c = sizeof(c);
d = sizeof(d);
printf("%d\r\n%d\r\n%d\r\n%d\r\n",a,b,c,(int)d);
return 0;
}
查看17道真题和解析