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

PROGRAMMING:String copy

Luz5年前 (2021-05-10)题库425
Write a custom function to copy the contents of a string (no more than 80 characters) to another character array. Main function input a string of characters, copy to another array output.
```
#include
int str_ copy(char *d,char *s){
//Please enter your code here
}
int main(){
char pa[81];
char pb[81];
gets(pa);
str_ copy(pb,pa);
printf("%s",pb);
return 0;
}
```
###Input example:
```in
#include
```
###Output example:
```out
#include
```







answer:If there is no answer, please comment