What is the simplest example using auto in C++? -
i try understand how auto
used in c++. me best way understand see example. however, examples saw not simple. example here "meaning of c++0x auto keyword, example?". understand example need know "templates", "pointers", "malloc" , on.
can anybody, please, give minimalistic example using auto 1 can easy understand used for?
int = 10; int b = 20; auto c = a+b; // c int
Comments
Post a Comment