As the title might look very confusing, let me give you an example:
typedef bool foo[2];
typedef foo bar[4];
bar what_am_i;
So, is what_am_i
a [4][2]
dimensional array as I presume, or a [2][4]
dimensional array?
As the title might look very confusing, let me give you an example:
So, is |
||||
|
It's
|
|||
|
Then |
||||
|
In order to complete @Slardar Zhang's C++ answer for C: It's You can verify it by either one of the following:
|
|||
|
After inspecting the variable through the debugger, I found that I was right - |
|||
|
When you don't know the type of a variable, one of the easy ways is this trick:
then do this:
almost every compiler will spit out a reasonably readable "you cannot assign You can also verify you have a good guess with
sometimes you'll want to generate |
|||||
|