Re: The void** pointer breaking symmetry?
- From: elmar@xxxxxxxxxx
- Date: 5 May 2006 14:58:17 -0700
Big apologies, I accidentally pasted only the 'correct' of the two
symmetry related cases:
Here is the complete code:
char *cp;
void *vp;
void **vpp;
// 1
cp=vp;
// 2
cp=*vpp;
// 3
vp=cp;
// 4
vpp=&cp;
In short: if 1 and 2 work, why does the reversion work in case 3 but
fail in case 4 with the GCC message "warning: assignment from
incompatible pointer type" ?
Thanks again,
Elmar
.
- Follow-Ups:
- Re: The void** pointer breaking symmetry?
- From: Keith Thompson
- Re: The void** pointer breaking symmetry?
- References:
- The void** pointer breaking symmetry?
- From: elmar
- Re: The void** pointer breaking symmetry?
- From: Eric Sosman
- The void** pointer breaking symmetry?
- Prev by Date: Re: iostream error.
- Next by Date: Re: discussing C evolution
- Previous by thread: Re: The void** pointer breaking symmetry?
- Next by thread: Re: The void** pointer breaking symmetry?
- Index(es):
Relevant Pages
|