Accentuation in C

Asked

Viewed 127 times

-3

How do I accentuate the vowels without having to use the locale library. h ? I know that the £ matches the E as it would for the other vowels ?

1 answer

1


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

So without further ado the other way to print an accent or something like that without the locale library. h would be using the ascii table.

Ex:

As shown in the link the character 'ç' is represented by the 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’ve helped ;).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.