I want to declare
char ch[9] as ch_9 with the help of the typedef statement.
Thanks
I want to declare
char ch[9] as ch_9 with the help of the typedef statement.
Thanks
How about
typedef char ch_9[9];
however you can't do this...
ch_9 my_func(int x)
{
ch_9 blah;
return blah;
}
As in specific cases arrays are treated as pointers.
In that case you would have to do
typedef struct { char ch[9]; } ch_9;