摘要:
通过屏幕我们输入三个数字,并找出最大的数。 #include <stdio.h>int main(){ double n1, n2, n3; printf("请输入三个数,以空格分隔: "); scanf("%lf %lf %lf", &n1, &n2, &n3); if( n1>=n2 && n1 阅读全文
posted @ 2020-01-03 20:47
张德明
阅读(788)
评论(0)
推荐(0)
摘要:
使用 sizeof 操作符计算int, float, double 和 char四种变量字节大小。 sizeof 是 C 语言的一种单目操作符,如C语言的其他操作符++、--等,它并不是函数。 sizeof 操作符以字节形式给出了其操作数的存储大小。 #include <stdio.h>int ma 阅读全文
posted @ 2020-01-03 20:40
张德明
阅读(1565)
评论(0)
推荐(0)
浙公网安备 33010602011771号