#include char *gets(char *s) { int c = '\0'; char *dest = s; while ((c = getchar()) != EOF && c != '\n') *dest++ = c; *dest = '\0'; return s; } int main() { char nombre[64]; printf("¿Cómo te llamas? "); gets(nombre); printf("¡Hola %s!\n", nombre); }