+ 22
Why char a='13'; is invalid in this question?
18 Respuestas
+ 19
You have two characters 1 and 3
+ 21
Piyush Srivastava not bro 😂
say sis😅
+ 20
got it voja thank u🙂
+ 6
😂😂 but i usually call girls bro 😎that's my way PRIYANKA. No sis 😂😂😇
+ 5
Bro actually it represents two characters '1' and '2'.you can use two different char variable for this stuff.
+ 5
Nice Questions
+ 5
anuradha mall please note that char c==''9" is also not valid. Double quotes means String, single quotes is for char (like PRIYANKA mentions)
+ 4
char c==''9" is valid becoz char can hold only one letter but char=="13" is not a char it is string so it is invalid
+ 3
This is bevaise char datatype only accepts one character
+ 3
Because character can only contain one digit or alphabet
+ 3
Yes and it must be enclosed within single quotes
+ 3
Because char store only 1 bit value and 13 is 2 bit
+ 2
In 13 there are two characters 1 and 3 so it not suitable for char
+ 2
Char can read only one character
+ 2
Char type is only one letter or sign you have two.
+ 1
You can also use char to store integers, so
char a = 13;
is valid. Note there is not single quotes around 13.
+ 1
14
+ 1
You have '13' assigned to a. 13 is two characters. It supposed to be just one character