Lesson 21 – Arduino C;C++ Char Data Types

preview_player
Показать описание
The char datatype can store any number of character set. An identifier declared as the char becomes a character variable. The literals are written inside a single quote.
The char type is often said to be an integer type. It is because, symbols, letters, etc., are represented in memory by associated number codes and that are only integers.
The size of character data type is minimum of 8 bits. We can use the byte data type for an unsigned char data type of 8 bits or 1 byte.
For example, character ' A ' has the ASCII value of 65.
If we specify, ' A ' + 2, it will have the ASCII value of 67.
Рекомендации по теме