|
From: Per W. <pw...@ia...> - 2003-07-11 02:13:04
|
Is this a school assignment? If not, I would be more interested in what you want to solve. A lot of the time there are a number of questions how to write this and that complicated construct, when the original problem might have a simpler solution. What triggers my question is that a reference to a pointer to a pointer to char is a tripple indirection, since a reference is just a modified form of a pointer. Do you really, really need such a long way just to get in contact with a poor little character :-) Ioannis: My assumption about a question of a non-const reference is not if the reference may be changed, but if the object pointed to by the reference may be modified. /Per W On Fri, 11 Jul 2003, dawood wrote: > 1.does anybody know how to create a typedef for an array of 8 arrays of 7 > pointers to int. > > 2. char c[]="hello"; > char* pc= c; > char** ppc = &pc; > does anybody know a much shorter method to create a pointer to > pointer to char. I am doing it in 3 statements. Can anybody show me how to > do it in less than 3 statements. > 3. Also can anybody show me how to create a non constant reference to > pointer to pointer to char. > |