填空题
下面程序的运行结果是
【17】
。 #define N 10 #define s(x) x*x #define f(x)(x*x) mam() { int il,i2; i1=1000/s(N);i2=1000/f(N); printf("%d %d\n",il,i2); }
【参考答案】
[17]1000 10
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
已知字母A的ASCII码为65。以下程序运行后的输出结果是 【11】 。main(){ char a,b;a=’A’+’5’-’3’;b=a+’6’-’2’;printf( %d %c n ,a,B) ;}
点击查看答案&解析
填空题
下列程序中的函数stropy2()实现字符串两次复制,即将t所指字符串复制两次到s所指内存空间中,合并形成一个新字符串。例如,若t所指字符串为:efgh,调用strcpy2后,s所指字符串为:efghefgh。请填空。#include <stdio.h>#include <string.h>void strcpy2(char *s,char *t){ char *p=t;while(*s++=*t++);s= 【15】 ;while( 【16】 =*p++);}main(){ char str1[100]= abed ,str2[]= efgh ;strcpy2(str1,str2); printf( %s n ,str1);}
点击查看答案&解析
相关试题
以下程序中函数huiwen的功能是检查一个字符...
以下程序的功能是计算:s=1+12+12...
以下程序的输出结果是 【9】 。#includ...
以下函数fun的功能是返回str所指字符串中以...