Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

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

c++ variable variabletype

  • Please log in to reply
No replies to this topic

#1 Siten0308


    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 295 posts

Posted 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

  • 0
Its only funny till someone gets hurt.... THEN ITS HILARIOUS :)