【C语言】赋值运算中的类型转换
#include<stdio.h> int main() { int a, b; double x = 1.54; char ch; a = x; x = 12; b = 'a'; ch = 356; printf("a=%d\nx=%f\nb=%d\nch=\'%c\'\n",a,x,b,ch); return 0; }
本文来自博客园,作者:木子欢儿,转载请注明原文链接:https://www.cnblogs.com/HGNET/p/11866616.html