C accent

-3

How do I accent the vowels without having to use the locale.h library? I know that £ corresponds to E as they would for the other vowels?

    
asked by anonymous 10.10.2017 / 15:56

1 answer

0

Basically all letters, numbers and special characters have a representation in the ASCII table , this table shows what would be the binary that represents that character you are wanting the computer to print or something of, so the binary can be converted to octal, hexadecimal and to decimal.

So without further ado the other way of printing an accent or something like that without the locale.h library would be to use ASCII table .

Ex:

As shown in the link the character 'ç' is represented by decimal 135, so to print it, just do the following, printf("%c", 135); , this way the character 'ç' will be printed on the screen.

I hope I have helped;).

    
10.10.2017 / 18:41