填空题

有以下语句段:
int n1=10,n2=20;
printf(" 【15】 ",n1,n2);
要求按以下格式输出n1和n2的值:
n1=10
n2=20
每个输出行从第一列开始,请填空。

【参考答案】

n1=%d\nn2=%d
<上一题 目录 下一题>
热门 试题

填空题
以下sstrcpy()函数实现字符串复制,即将t所指字符串复制到s所指内存空间中,形成一个新字符串s。请填空。 void sstrcpy(char *s,char *t) while( *s++= 【13】 ); main() char strl[100],str2[]= abcdefgh ; sstrcpy(str1,str2); printf( %s n ,str1);
填空题
以下程序的运行结果是 【17】 。 #include <stdio.h> #include <string.h> typcdef struct student char name[10]; long sno; float score; STU; main() STU a= Zhangsan ,2001,95,b= Shangxian ,2002,90, c= Anhua ,2003,95,d,*p=&d; d=a; if(strcmp(a.name,b.name)>0) d=b; if(strcmp(c. name,d. name)>0)d=c; printf( %1d%s n ,d.sno,p->name);
相关试题
  • 下面程序的运行结果是 【18】 。 #in...
  • 下面rotate函数的功能是:将n行n列的矩阵A...