Created
November 3, 2019 05:49
-
-
Save parzibyte/6952d1024f343aedec96e8cadf228f9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://parzibyte.me/blog | |
char cadena[2]; | |
char caracter = 'A'; | |
// Reservamos 2 espacios, uno para el caracter y otro para el fin de la cadena | |
cadena[0] = caracter; | |
cadena[1] = '\0'; // El carácter NULL o bueno, el que termina las cadenas | |
printf("Convertido es: %s\n", cadena); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment