int i;char * ptr;char msg[]="hleb";char nm[]="pivo";ptr = msg;for(i = 0; i < strlen(msg); i++){ *(ptr+i) = nm[i];}