Skip to content

Instantly share code, notes, and snippets.

Created Jul 29, 2019
What would you like to do?
Convertir int a char en C
@author parzibyte
#include <stdio.h> // printf
// Prototipo
char enteroACaracter(int numero);
int main(){
int numero = 1;
char comoCaracter = enteroACaracter(numero);
printf("El entero %d se convierte a '%c' como carácter", numero, comoCaracter);
char enteroACaracter(int numero){
return numero + '0';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment