Respuesta :
Answer:
char
Explanation:
The character data type written as char holds any single character, numbers and non-printing characters. In java and most programming languages, the value of the character must be placed within single quotes. for example
char c = 'd'
char c = '9'
char c = '\t'
Are all valid declarations of a variable c as char and assigned d, then 9 and then used with a non-printing character (tab ) with the escape sequence.
Answer:
char
Explanation:
In Java and some other programming languages, the data type used to hold a single character including numbers and non-printing characters is char.
Examples of single characters (numbers) that can be held by a char data type are;
(i) 065 - which represent an ASCII code for character 'A' (without quotes)
(ii) 097 which represent an ASCII code for character 'a' (without quotes)
Examples of single characters (non-printing) that can be held by a char data type are;
(i) Non-breaking space
(ii) Tab character
Examples of other single characters that can be held by a char data type are;
(i) 'd' - character d (without quotes)
(ii) 'M' - character m (without quotes)