Louise Posted May 26, 2008 at 03:34 PM Report Share #187592 Posted May 26, 2008 at 03:34 PM 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 at 04:23 PM Report Share #187597 Posted May 26, 2008 at 04:23 PM 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 at 04:28 PM Author Report Share #187598 Posted May 26, 2008 at 04:28 PM 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 at 04:31 PM Report Share #187600 Posted May 26, 2008 at 04:31 PM É 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