The Cyber-Spy.Com Usenet Archive Feeds Directly From The Open And Publicly Available Newsgroup Sci.Electronics.Design
This Group And Thousands Of Others Are Available On Most IS NNTP News Servers On Port 119.
Cyber-Spy.Com Is NOT Responsible For Any Topic, Opinions Or Content Posted To This Or Any Other Newsgroup. This Web Archive Of The Newsgroup And Posts Are For Informational Purposes Only.
From: nospam
Newsgroups: sci.electronics.design
Subject: Re: To C or not to C
Date: Mon, 06 Jan 2003 22:59:09 +0000
Organization: http://extra.newsguy.com
Message-ID:
References: <3e187255$0$57466$1b62eedf@news.euronet.nl> <3e1880cf$0$57462$1b62eedf@news.euronet.nl> <3e18d34d.5071993@news.planet.nl> <3e1941b2.882058@news.planet.nl> <3e19cd46$0$57461$1b62eedf@news.euronet.nl>
NNTP-Posting-Host: p-736.newsdawg.com
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.93/32.576 English (American)
"Kevin Aylward" wrote:
>The shortest way would
>> be: while(*po++=*pi++); but always nice to check what it turns into.
>
>Having not actually looked at a compiler output for maybe 7 years, I'm
>not sure whether or not statements on one line like this always expand
>to better code then simply making separate ones. However, I don't like
>the po++ on the left hand side, I don't think that's it guaranteed to
>expand in the correct order.
>In my own code, I usually use the longer text versions as it is clearer.
Given as example code in K&R 25 years ago it is guaranteed to work as
expected and should be crystal clear to anyone who claims to know the
language.
Go Back To The Cyber-Spy.Com Usenet Web Archive Index Of The sci.electronics.design Newsgroup
|