0
What is char and when i use it
2 Answers
0
A char is a datatype to store characters such as 'c', '0' or 'C'.
0
A char is a character data type, similar to a string, but only contains one character.
In the C language, a char has a storage size of 1 byte (8 bits) and the values can range from -128 to 127, or 0 to 255, or they may contain a letter or a symbol.
While strings and chars both use quotation marks, some programming languages indicate strings with double quotation marks (â â) and characters with single quotation marks (â â).