简介:华为公司针对应聘者的招聘考试题目,涵盖技术、逻辑思维及专业知识等多个方面,旨在全面评估求职者的能力与潜力。
华为各个职位笔试题
```cpp
#include
#include
#include
#include
void fun(char a[]) {
int i, j, m = 0, s = 0, strl;
strl = strlen(a);
char temp[30] = {0};
for (i = strl - 1; i >= 0; i--) {
if (!isspace(a[i]))
m++;
else {
for (j = 1; j <= m; j++)
temp[s++] = a[i + j];
m = 0;
}
if (isspace(a[i]))
temp[s++] = a[i];
}
for (j = 1; j <= m; j++)
temp[s++] = a[j];
temp[s] = \0;
strcpy(a, temp);
}
```