四川大学2012年c语言上机考试复习题ef1e1.docVIP

  • 21
  • 0
  • 约2.08万字
  • 约 95页
  • 2018-12-10 发布于湖北
  • 举报

四川大学2012年c语言上机考试复习题ef1e1.doc

四川大学2012年c语言上机考试复习题ef1e1

有以下程序 #includ?e stdio.h void main() { char k; int i; for(i=1;i3;i++) { scanf(%c,k); switch?(k) { case 0: printf?(anothe?r\n); case 1: printf?(number?\n); } } } 程序运行时,从键盘输入:01↙,程序执行后的?输出结果是_?__ anothe?r number? number? 下面程序的输?出是_x=4 ___。 #includ?estdio.h main() { int i,j,x=0; for(i=0;i2;i++) { x++; for(j=0;j-3;j++) { if(j%3) contin?ue; x++; } x++; } 设x为int?型变量,则执行以下语?句后,x的值为:0 int x = 10; x*=x/=-x; printf?(%d\n, --x); 若有代数式(其中e代表自?然对数的底数?,不是变量),则以下能够正?确表示该代数?式的C语言表?达式是sqr?t(fabs(pow(n,x)+exp(x))) 有如下程序 #includ?e stdio.h void main() { int x=1,a=0,b

文档评论(0)

1亿VIP精品文档

相关文档