top | item 41284671

(no title)

nj5rq | 1 year ago

It's the first time I ever see the function parameters declared like this:

    int my_function (a, b)
    int a; char *b;
      {
      ... body of function ...
      }
What do you even call this?

discuss

order

omerhj|1 year ago

K&R C

zabzonk|1 year ago

Altho idiomatic that is perhaps slightly confusing because K&R 2nd ed uses the modern way of specifying parameters. I would prefer to say "pre ANSI C" or something of that kind.