c程序的运行环境和简单c源程序的调试讲解.docx

c程序的运行环境和简单c源程序的调试讲解.docx

C程序的运行环境和简单 C源程序的调试,实验报告(共 题),用时(127分33秒),成绩 (A) 1 、 有如下程序: #includestdio.h main( ) { int a=8; printf(%d,%5d,%-5d####\n,a,a,a); printf(%d,%o,%x,%u,a,a,a,a); } 第二个 printf 语句的运行结果是 _8,1 0, 。 你的答案:8,10,8,8 V 2、 有如下程序: #includestdio.h main( ) { char c1=a,c2=b; int a=97,b=98; printf(%d,%d\n,a,b); printf(%c,%c,c1,c2); } 最后一个 printf 语句的运行结果是 你的答案: a,b V 3、 有如下程序: #includestdio.h main( ) { int i,j; i=3; j=4; printf(%d %d\n,i++,++j); printf(%d,%d\n,i,j); printf(%d,%d\n,-i++,-++j); } 最后一个 printf 语句的运行结果是 你的答案: -4,-6 V 4、 有如下程序: #includestdio.h main( ) { int a=7; float x=2.5,y=4.7,z; z= x + a % 3 * (

文档评论(0)

1亿VIP精品文档

相关文档