Hello again.
and thanks for all the answers !!

continuing from my question-
is a=b the same like *a=*b  ??
*a == &a ? and *b==&b or I got it all mixed up?
if a and b were initialized in the begining with NULL(\0),
what was the difference ?




--- In [email protected], Jim Dougherty <[EMAIL PROTECTED]> wrote:
>
> 
> 
> [email protected] wrote:
> > 
> > [ mailto:c-prog%40yahoogroups.com [EMAIL PROTECTED] wrote:
> >> defined -
> >> int *a,*b;
> >>
> >> what's the difference between:
> >>
> >> 1. *a=b;
> > Here, the location pointed to by A (which is an INT) 
> > is set to the contents of pointer B (which is a pointer to an 
INT).
> > Note: the compiler should give you an error/warning about this.
> > 
> >> 2. a=b;
> > Here, the pointer A (which is a pointer to an INT) 
> > is set to the contents of the pointer B (which is a pointer to an 
INT).
> > 
> 
> 
> Maybe what you intended but did not specify was:
> 
> *a = *b;
> 
> Here, the location pointed to by A (which is an INT)
> is set to the contents of the location pointed to by B (which is an 
INT).
>


Reply via email to