On Tue, Mar 11, 2008 at 12:40 PM, oriporat <[EMAIL PROTECTED]> wrote: > Hello again. > and thanks for all the answers !! > > continuing from my question- > is a=b the same like *a=*b ??
In that they're assigning like with like, yes. In what they're actually assigning, no. The former is assigning pointers, the second ints. > *a == &a ? int = pointer to pointer to int - likely get a warning from your compiler on that one. > and *b==&b or Ditto. > I got it all mixed up? > if a and b were initialized in the begining with NULL(\0), Then any of *a= or *b= will likely result in a seg-fault or similar on most systems. > what was the difference ? Which book are you using to learn from? -- PJH A man walks into a bakery, points and the girl behind the counter "Is that a macaroon or a meringue?" "No, you're right, it's a macaroon."
