3 ms·
Huh? Maybe it's a joke, but "auto" in C has nothing to do with auto in C++. In C auto just defines the storage location (and is kinda useless), not the type (w
by coldtea 11y ago
Huh? Maybe it's a joke, but "auto" in C has nothing to do with auto in C++.
In C auto just defines the storage location (and is kinda useless), not the type (which you still need to define).
- thechao 11y agoKind of serious-kind of joking: auto x = 3; "Infers" 'int'. Everything else is an error.