vendredi 27 février 2015

C issues with extended ASCII characters



I'm having trouble using variables in place of numeric values for characters in printf statements.


For example, printf("%c", 201) displays ╔ as I want it to but printf("%c", var) when var is of type char and var=201 displays ♫.


Anyone have any information as to what's going on?




Aucun commentaire:

Enregistrer un commentaire