"save as character"
Ab' is saved as int
"Abc" is saved as int.
Abcd' is saved as int.
Abcde error "Too many characters in constant"
It can be understood that the value contained in single quotation marks will be tried to be constant, and the rules for solving the test are as shown in the figure above, of course you can understand.
On most computers:
Abcd is saved in memory as d c b a.
"abcd" is saved in memory as "a' 'b' 'c' 'd' '\0"
This is a rule. If you already know, that's great. If you don't know it now, just study it more.
If you understand the above, you will understand why the value of "char i =' abcd// i" is "D". Then I'm glad I can help you.
I'm sorry I can't help you if you don't understand. I hope you can continue to study. You can solve this problem by yourself.