char copy (char* s, char* t){ // копирование строки т в строку с
int i = 0;
/*cout << s[5] << t[5] << '\n';
cout << *s << *t << endl;
cout << s << t << endl;*/
while(t[i] != '\0'){
s[i]=t[i];
i++;
}
return *s;
}
void main(){
char* a;
char* b;
char s[4] = "lol";
char t[4] = "pop";
a = &t[0];
b = &s[0];
copy (b, a);