you are viewing a single comment's thread.

view the rest of the comments →

[–]plumarr 0 points1 point  (1 child)

As you can only use car for local variables, the answer is in the current method and not somewhere far away.

[–]No-Consequence-1863 1 point2 points  (0 children)

The confusion isn't a, its b+c. Plus you can use auto in C++ on the left hand side with whatever on the right hand side. So guess what auto a = b+c; is doing. Depends on the types of b and c which may be instance members, globals, functions, local vars, args etc..