Louise Posted May 26, 2008 Report Share Posted May 26, 2008 Boas. Eu queria converter tipo 94 para a. tendo em conta k 94 é o codigo ascii de a. Eu sei k existia uma forma mas n a encontro. bigada. Link to comment Share on other sites More sharing options...
Baderous Posted May 26, 2008 Report Share Posted May 26, 2008 int a = 97; printf("Char de %d = %c",a,(char)a); Output: Char de 97 = a Link to comment Share on other sites More sharing options...
Louise Posted May 26, 2008 Author Report Share Posted May 26, 2008 Não queria imprimir. Queria armazenar numa variável. Obrigada na mesma. Link to comment Share on other sites More sharing options...
Baderous Posted May 26, 2008 Report Share Posted May 26, 2008 É a mesma coisa: int a = 97; char c = (char)a; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now