C语言定义数据类型基础

int整数型,输出时用printf(%d,);
float浮点数型,输出时用printf(%f,
);
double双精度型,输出时用printf(%lf,);
char字符型,输出时用printf(%c,
);

sizeof运算符,一般格式为sizeof(<数据类型>) or sizeof(<变量名>) or sizeof(<常量>)

数组
指针

posted @ 2021-03-25 14:59  WinyHan  阅读(22)  评论(0)    收藏  举报