Re: What is wrong with this: *p++=*s++
From: Ben Pfaff (blp_at_cs.stanford.edu)
Date: 08/07/04
- Next message: Mabden: "Re: Is "C For Dummies" any good?"
- Previous message: Keith Thompson: "Re: Null pointers"
- In reply to: Strix Nihildom: "Re: What is wrong with this: *p++=*s++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 06 Aug 2004 18:27:05 -0700
strixnihildom@aol.com (Strix Nihildom) writes:
>>*p++=*s++
>
> when you do stuff like this use parentheses
I disagree. This statement is idiomatic. Every C programmer
should understand what it means.
> [...] if for some reason you want it to read *(p++)= (*s++) it
> creates a different result...
No, those two expressions are equivalent.
-- "...what folly I commit, I dedicate to you." --William Shakespeare, _Troilus and Cressida_
- Next message: Mabden: "Re: Is "C For Dummies" any good?"
- Previous message: Keith Thompson: "Re: Null pointers"
- In reply to: Strix Nihildom: "Re: What is wrong with this: *p++=*s++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|