cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What is the purpose of the auto keyword?
What is the purpose of the auto keyword?
Feb 6, 2016 at 6:01pm UTC
RUNNER PRO AGARIO
(275)
I understand that auto can be used with functions that have return values, but why do people use them in things like for each loops. Wouldn't typing the data type itself be better?
Feb 6, 2016 at 6:09pm UTC
cire
(8284)
http://herbsutter.com/2013/08/12/gotw-94-solution-aaa-style-almost-always-auto/
Great question for google.
Feb 6, 2016 at 6:20pm UTC
RUNNER PRO AGARIO
(275)
Great Article, Thanks Cire!
Topic archived. No new replies allowed.