Pra*_*bha 1 c
#include<stdio.h> void main() { int cats,dogs,others,total_pets; cats=10; dogs=43; others=36; total_pets=cats+dogs; printf("there are %c total pets are",total_pets); }
cod*_*ict 10
使用%d代替%c的printf.
%d
%c
printf
价值total_pet是53.当您使用时%c,printf您正在尝试打印其ASCII值(如果53恰好是)的字符5.
total_pet
53
5
归档时间:
15 年,1 月 前
查看次数:
165 次
最近记录: