Difference between char and char[1]
In C++ what is the difference (if any) between using char and char[1]. examples: struct SomeStruct { char x; char y[1]; }; Do the same reasons follow for unsigned char? The main difference is just the syntax you use to access your one char. By "access" I mean, act upon it using the various operators in the language, most or all of which do different things when applied to a char compared with a char array. This makes it sound as if x and y are almost entirely different. If fact they both "consist of" one char, but that char has been represented in a very different way. The implementation could