1char a[2] defines an array of char's. a is a pointer to the memory at
2 the beginning of the array and using == won't actually compare the
3 contents of a with 'ab' because they aren't actually the same types,
4 'ab' is integer type. Also 'ab' should be "ab" otherwise you'll have
5 problems here too. To compare arrays of char you'd want to use strcmp.
6
7Something that might be illustrative is looking at the typeid of 'ab':