Is it correct that this single keyword is used to indicate two quite different things:
- As a shorthand to make the type of the variable being declared the same as the type on the right hand side of an initial assignment.
Example: auto A = 5;
makes A an int.
- To indicate storage class of variable.
Example: auto int A;
(I guess) makes A have automatic storage, ie contents lost when control goes out of scope, unlike static.
Best regards