News for hackers. Stuff that matters.
Re:First C compiler ported to GCC by 1ris on Wednesday April 07, 2021 @02:50AM (#26721250)
"auto" in c is a storage class specifier, like "register", "extern" or "static".

https://en.cppreference.com/w/c/language/storage_duration

It was considered pretty useless by most, so c++11 recycled the keyword to mean something different.

Re:First C compiler ported to GCC by jwilk on Wednesday April 07, 2021 @03:43AM (#26721552)
Re:First C compiler ported to GCC by mywittyname on Wednesday April 07, 2021 @03:21PM (#26729729)
Auto is the implicit default right? As in function scoped, stack allocated, and lives until the function is returned?

K&R (Second Ed). Makes no mention of the auto keyword in Section 1.10, but it does say,

> Each local variable in a function comes into existence only when the function is called, and disappears when the function is exited. This is why such variables are usually known as automatic [sic] variables[...]

Re:First C compiler ported to GCC by 1ris on Wednesday April 07, 2021 @03:53PM (#26730237)
yes, exactly. That's why there is no need for it in modern c. This compiler however is different: The type is optional (and assumed to be int). Say you have a variable declaration "auto int i;". Back then you could omit int, now you can omit auto.