0

What is char and when i use it

8th Aug 2018, 5:25 PM
Ahmed Ismail
Ahmed Ismail - avatar
2 Answers
0
A char is a datatype to store characters such as 'c', '0' or 'C'.
8th Aug 2018, 7:13 PM
Jonas Schröter
Jonas Schröter - avatar
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 (‘ ‘).
9th Aug 2018, 7:22 AM
NULL
NULL - avatar