填空题

若变量a,b已定义为int类型并分别赋值21和55,要求用printf函数以a=21,b=55的形式输出,请写出完整的输出语句行: 【14】 。

【参考答案】

printf("a=%d,b=%d",a,b);
<上一题 目录 下一题>
热门 试题

填空题
有两个C程序文件T18.c和myfun.c同在VC系统目录(文件夹)下,其中T18.c文件如下: #include <stdio.h> #include myfun.c main( ) fun(); prinff( n ); myfun.c文件如下: void fun( ) char s[80],c;int n=0; while((c=getchar())! :’ n’) s[n++] =c; n--; while ( n>=0) prinff( %c , s [n--] ); 当编译连接通过后,运行程序T18时,输入 Thank!”,则输出结果是 【13】 。
填空题
以下isprime函数的功能是判断形参a是否为素数,如果是素数,函数返回1,否则返回0。 int isprime( int a) int i; for(i =2;i<= a 2;i ++ ) if(a%i==0) 【10】 ; 【11】 ;
相关试题
  • 以下程序中函数fun()的功能是构成一个如...
  • 当运行以下程序时,输入abcd,程序的输出结...
  • 以下程序用于判断a,b,c能否构成三角形,...
  • 以下程序的功能是:输出100以内(不含1...