Jump to content

Check out our Community Blogs


Member Since 18 Jun 2008
Offline Last Active Oct 10 2017 01:57 PM

Topics I've Started

basic c++ question, difference between a and a&

10 October 2017 - 01:46 PM



i am a new convert to c++, why, its because C++ is the base of so many thing, plus, i want a challenge, not that i dont get it from other langauges like C# or python, and those are good langauges in my opinion, but c++, i always been fond of it, always looked at it as the next stepping stone to a challenge, so, simple stupid noob question, what is the difference between declaring and using variable a and variable a&?


can you give an example as to why and when to use each or any?


thanks in advanced