10th Aug 2017, 11:18 AM
Ahalya Rajesh
Ahalya Rajesh - avatar
2 odpowiedzi
+ 4
u mean char a = '*'? yes
10th Aug 2017, 11:22 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
char a='*' is Ok but char a="*" will compile error. Because "" is mean a string, if u use char type there will a '\0'at the end. Thus char a="*" will error, but string a="*" will not.
10th Aug 2017, 12:23 PM
懵懂蔡
懵懂蔡 - avatar