Joseph Huang
3
Q:

meter espacios en cadena c

cambiar %s por %[^\n] y funcionarán los espacios

Ejemplo:

char variable[50];
printf("Ingresa el valor:\n");
scanf("%[^\n]", variable);
1

New to Communities?

Join the community