Character array

how can we assign null_character in char array ?
according this is not happen because null character is combination of 2 character but char take only 1 character

give any reason ?

Null character is made of 2 different characters, i.e. ‘’ and ‘0’, but when these two are put together those are considered as one single character. And that is why we are able to assign null character to a char variable. The compiler is made this way that it reads ‘\0’ as one single character only.

Hope this helps.