¿ªÔÆÌåÓý

Re: Coding styles


 

I've often wondered if the original coding of the "if" statement in C
didn't derive from fortran syntax:

if (expression) then
statements
endif

The "then" had to be on the same line as the if. In C, the "then" is
replaced by the "{" brace.

At least that's how we had to write fortran in 1968 for the mainframe
to compile it!

tim ab0wr

On Mon, 07 May 2018 05:44:24 +0000
"Ashhar Farhan" <farhanbox@...> wrote:

64x16? K&R?? Surely, you are not talking floppy shuffle on the Xerox
820 or (jerry pournelle, peace be upon him) a Kaypro?
BDS C was the only game in town. I brought up a CP/M system for my
undergraduate project work.
- f
- f

Join [email protected] to automatically receive all group messages.