Reputation: 69
Little confused on the use of typedef and then using the alias to create a char array.
#define BIGVALUE 50
typedef char TEST[BIGVALUE];
TEST array[10];
Does array become a pointer to a 10 by 50 array? Is this what an array of array's appears like? Thanks.
Upvotes: 2
Views: 149
Reputation: 489
array
is an array of 10 TESTs
and
TEST
is an array of 50 chars
hence array
is an array of 10 array of 50 char, which equals to char[10][50]
Upvotes: 7