What result did you get when you ran it?
Seems as if you are doing the right experiment to test the idea.
Most languages use ASCII which means that a character is 8 bits long. It's a convention of representing characters as numbers, since in computers we really only have bits and numbers and have to decide how to interpret them as other things..
ASCII is not the only way, but the most common, along with extentions for such as non-English characters. e.g. abcdef. персонажи, 人物
(Your browser needs to also know how to draw each number as a character for it to come out right)
C is not a "strongly-typed" language, which basically means that if the data fits in a variable you can store it there.
Googling (c language character representation) I got this as my first hit
https://www.zentut.com/c-tutorial/c-character-type/
C Character Type
Summary: in this tutorial, you will learn what
C character type is and how to declare, use and print character variables in C.
C uses char type to store characters and letters. However, the char type is
integer type because underneath C stores integer numbers instead of characters.
...
There's more if you'd like to read further.
Just next on that page is a table of ASCII. It's the convention about which integer value means which character. If everyone uses the same standard, or a compatible standard, everything comes out right.
When I used to programme in C, I kept a copy or K&R handy. You might want to look for one, if for some reason google doesn't work for you.
