-->
当前位置:首页 > 题库

PROGRAMMING:Two dimensional character array example

Luz5年前 (2021-05-10)题库392
```
Please analyze the functions of the following programs. Understand 2D character arrays.
#include
#include
int main(){
char s[4][80]={"Harbin","Normal"};
strcpy(s[2],"University");
strcat(s[3],s[0]);
strcat(s[3],s[1]);
strcat(s[3],s[2]);
int i=0;
for(i=0; i<4; i++)
puts(s[i]);
}
```
###Input example:
```in
```
###Output example:
```out
Harbin
Normal
University
HarbinNormalUniversity
```







answer:If there is no answer, please comment