L
Lew Pitcher
Colin said:char *pA[5];
char *pB[5];
pA = pB;
This doesnt compile.
Not surprisingly.
pA is the name of an array (an array of 5 pointers to char)
pB is the name of an array (an array of 5 pointers to char)
Neither pA nor pB is alterable, although their /contents/ are.
On second thoughts, does
(x) char *pA[5] mean
(a) "A pointer to 5 characters" or
(b) "5 pointers to a character" ?
(b)
If (x) == (b) then how would (a) be declared?
char (*pA)[5];
Any help would be appreciated.
--
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)