题目内容

请写出下列代码的输出内容
#include<stdio.h>
main()
{
int a,b,c,d;
a=10;
b=a++;
c=++a;
d=10*a++;
printf("b,c,d:%d,%d,%d",b,c,d);
return 0;
}

查看答案
更多问题

请找出下面代码中的所以错误
说明:以下代码是把一个字符串倒序,如“abcd”倒序后变为“dcba”
1、#include"string.h"
2、main()
3、{
4、 char*src="hello,world";
5、 char* dest=NULL;
6、 int len=strlen(src);
7、 dest=(char*)malloc(len);
8、 char* d=dest;
9、 char* s=src[len];
10、 while(len--!=0)
11、 d++=s--;
12、 printf("%s",dest);
13、 return 0;
14、}

编写strcat函数(6分) 已知strcat函数的原型是char *strcat (char *strDest, const char *strSrc); 其中strDest 是目的字符串,strSrc 是源字符串。 (1)不调用C++/C 的字符串库函数,请编写函数 strcat

According to Peter Ricchiuti, New Orleans [A] is often struck by hurricanes such as Katrina, [B] no longer paid white collars as much as before. [C] failed to recover from the storm as planned. [D] will lose more while-collar jobs in oil industry after the storm.

The phrase" caved in" (paragraph 2) most probably means [A] yielded. [B] entered. [C] promised. [D] criticized.

答案查题题库