Why does this compile:
char ch = '1234'; //no error
But not anything more than 4 char
s :
char ch = '12345'; //error: Too many chars in constant
(Yes I know ' '
is used for one char
and " "
is for strings; I was just experimenting)
Does this have anything to do with the fact that char
s are represented using ASCII numbers?