Interpretación del ejercicio 2.2 #42
Unanswered
curambar
asked this question in
Preguntas y Respuestas
Replies: 1 comment
-
ejemplo 1, origen es más largo que destinoorigen -> " resultado -> " ejemplo 2, destino es más largo que origenorigen -> " resultado -> " EDIT (para que quede un unico \0, el del origen debiera de desaparecer)ImportanteEn ambos casos se asume que la capacidad de destino es suficiente. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
No entiendo muy bien la consigna. Supongamos que la cadena origen es 'HOLA\0'.
¿La cadena destino debe estar vacía? Si es así, ¿debo hacer una copia de origen directa?
Si la cadena destino no está vacía, digamos que es 'SARASA\0', ¿debo sobreescribirla, quedando en este caso 'HOLASA\0', o quedando 'HOLA\0' tambien?
Si no estuviera vacía destino, y fuera mas corta, como 'AB\0', ¿debería quedar 'HO\0' como resultado?
Si se pudiera otorgar un ejemplo concreto estaría muy agradecido.
Beta Was this translation helpful? Give feedback.
All reactions