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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -