C语言:数据类型转换

#include <stdio.h>
main()
{
    printf("%d\n",sizeof(1));
    printf("%d\n",sizeof(0.1));
    printf("%f\n",1); 
    printf("%f\n",(1+2*2+3));
    printf("%d\n",1+3/2); 
    printf("%f\n",1/3*3);
    printf("%f\n",1/3*3);
    getchar();
 }

 

posted @ 2021-04-22 06:47  myrj  阅读(55)  评论(0编辑  收藏  举报