Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
prob w/the C prog. lang. book(ANSI C)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Martin Ambuhl, post: 1706734"] Please cite the page on which you claim to have found this program as Sather posted it. If that is not a typing error, then either are typing errors, or the program is presented as an example of a broken program. As it happens, the program on page of K&R1 (1978) has none of those three lines as shown in the posting by Mark Sather. On the left is the code Sather posted; indented is the code from K&R1 when it differs: /* Sather's posting */ /* K&R has this declarion below that for lower, upper, step, and has it as: */ float fahr, celsius; /* K&R has this correctly done: */ celsius = (5.0/9.0) * (fahr-32.0); /* K&R has this correctly done: */ printf("%4.0f %6.1f\n", fahr, celsius); Are you and Sather really claiming that K&R changed a working program in K&R1 to a grossly broken one in K&R2? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
prob w/the C prog. lang. book(ANSI C)
Top