正在加载图片...
int a=8.b=9 float x=127.895,y=-123.456 B unsigned u=65535u tf(%d, %d\n tf("%5d,%5d\r printf( %f, %f\n", x, y) printf( %-12f, %-12f\n", y) printf("%8.3f,%8.3f,%.3f,%.3f,%f,‰5f\n",x,y, printf( %e, %10. 4e\n", y) printf(%c, %d %xn ntf( %ld, %10, %1x\n", n, n, n) tf("‰,%0,%x,%dⅦ printf("%s,%6.3s,%10.5s\n","C","C 答:本题读者可上机验证{ int a = 8, b = 9; float x = 127.895, y = -123.456; char c = ’B’; long n = 12345678L; unsigned u = 65535u; printf("%d, %d\n", a, b); printf("%5d, %5d\n", a, b); printf("%f, %f\n", x, y); printf("%-12f, %-12f\n", x, y); printf("%8.3f, %8.3f, %.3f, %.3f, %4f, %5f\n", x, y, x, y, x, y); printf("%e, %10.4e\n", x, y); printf("%c, %d, %o, %x\n", c, c, c, c); printf("%ld, %lo, %lx\n", n, n, n); printf("%u, %o, %x, %d\n", u, u, u, u); printf("%s, %6.3s, %-10.5s\n", "C", "C++", "JAVA"); } 答:本题读者可上机验证
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有