+ 1

how char accepts value??

21st Jun 2016, 7:13 AM
Mitali Mestry
Mitali Mestry - avatar
4 Respuestas
+ 1
just equate it with one character surrounded by a single quote. example: char yourChar = '?'; Hope that helps!
21st Jun 2016, 8:20 AM
erwinmesi
erwinmesi - avatar
+ 1
Just use it like a char : char h = '5'; Console.WriteLine(h); //Output 5 (like text)
22nd Jun 2016, 9:05 AM
I.A.Sebsil83
I.A.Sebsil83 - avatar
0
24
21st Jun 2016, 3:01 PM
hogiahao2003
0
it can take only 1 character , for example 1,2,5,×,_,',g,B,. and so on. It's just 1 character from your keyboard
23rd Jun 2016, 12:45 PM
Alex Ban
Alex Ban - avatar