int a=125,b=453; long c=65535; printf(“a=%d,b=%5d,c=%ld”,a,b,c); 输出结果:a=125,b= 453,c=65535例:int a=125,b=453;long c=65535;printf(“a=%d,b=%5d,c=%ld”,a,b,c);输出结果:a=125,b= 453,c=65535%1d,%5d.有什么必要?
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/06 19:55:29
![int a=125,b=453; long c=65535; printf(“a=%d,b=%5d,c=%ld”,a,b,c); 输出结果:a=125,b= 453,c=65535例:int a=125,b=453;long c=65535;printf(“a=%d,b=%5d,c=%ld”,a,b,c);输出结果:a=125,b= 453,c=65535%1d,%5d.有什么必要?](/uploads/image/z/11226899-11-9.jpg?t=int+a%3D125%2Cb%3D453%3B+long+c%3D65535%3B+printf%28%E2%80%9Ca%3D%25d%2Cb%3D%255d%2Cc%3D%25ld%E2%80%9D%2Ca%2Cb%2Cc%29%3B+%E8%BE%93%E5%87%BA%E7%BB%93%E6%9E%9C%EF%BC%9Aa%3D125%2Cb%3D+453%2Cc%3D65535%E4%BE%8B%EF%BC%9Aint+a%3D125%2Cb%3D453%3Blong+c%3D65535%3Bprintf%28%E2%80%9Ca%3D%25d%2Cb%3D%255d%2Cc%3D%25ld%E2%80%9D%2Ca%2Cb%2Cc%29%3B%E8%BE%93%E5%87%BA%E7%BB%93%E6%9E%9C%EF%BC%9Aa%3D125%2Cb%3D+453%2Cc%3D65535%251d%2C%255d.%E6%9C%89%E4%BB%80%E4%B9%88%E5%BF%85%E8%A6%81%3F)
x)+QH542I515VKWH53556V((*Hx0'V5F4E'V5'Q\D$dMk&?m|g3f@QOuemC(J0EUٜ'xŲF{"}lX
!~J47p:gٌD xaOYadoﳩ]bKv[~=<;P [
int a=125,b=453; long c=65535; printf(“a=%d,b=%5d,c=%ld”,a,b,c); 输出结果:a=125,b= 453,c=65535例:int a=125,b=453;long c=65535;printf(“a=%d,b=%5d,c=%ld”,a,b,c);输出结果:a=125,b= 453,c=65535%1d,%5d.有什么必要?
int a=125,b=453; long c=65535; printf(“a=%d,b=%5d,c=%ld”,a,b,c); 输出结果:a=125,b= 453,c=65535
例:
int a=125,b=453;
long c=65535;
printf(“a=%d,b=%5d,c=%ld”,a,b,c);
输出结果:
a=125,b= 453,c=65535
%1d,%5d.有什么必要?
int a=125,b=453; long c=65535; printf(“a=%d,b=%5d,c=%ld”,a,b,c); 输出结果:a=125,b= 453,c=65535例:int a=125,b=453;long c=65535;printf(“a=%d,b=%5d,c=%ld”,a,b,c);输出结果:a=125,b= 453,c=65535%1d,%5d.有什么必要?
%5d就是用5位数来表示,后面的是,%ld,是l不是1,是long型数的输入格式.