Posts by Raul M • 21 points
1 post
-
2
votes0
answers63
viewsQ: Reading a special character like char using locale does not work. How to fix it?
I’ll give a very simple example to explain my doubt: #include <stdio.h> #include <conio.h> #include <locale.h> main(){ setlocale(LC_ALL,"Portuguese"); char a; printf("Insira um…