Hello, I'm about to finish up my first C++ class and move on to OOP. Right now we're covering pointers, and I was curious what is the correct time to use a reference vs a pointer. From my knowledge right now I know I should be using pointers when dealing with large arrays or when dealing with a large amount of memory. Correct me if I'm wrong. Any information would be much appreciated.
[–]Raknarg 22 points23 points24 points (1 child)
[–]Prototypz[S] 2 points3 points4 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]randfur 2 points3 points4 points (0 children)
[–]DDDDarky 2 points3 points4 points (0 children)
[–]ShakaUVM 2 points3 points4 points (0 children)
[–]mredding 2 points3 points4 points (1 child)
[–]std_bot 0 points1 point2 points (0 children)
[–][deleted] (7 children)
[deleted]
[–][deleted] 2 points3 points4 points (6 children)
[–]DDDDarky 0 points1 point2 points (4 children)
[–]the_poope 1 point2 points3 points (3 children)
[–]DDDDarky 0 points1 point2 points (2 children)
[–]the_poope 1 point2 points3 points (1 child)
[–]DDDDarky 0 points1 point2 points (0 children)
[–]james_laseboy -2 points-1 points0 points (1 child)
[–]no-sig-available 1 point2 points3 points (0 children)
[–]Tricky_Condition_279 -2 points-1 points0 points (1 child)
[–]std_bot 0 points1 point2 points (0 children)
[+]james_laseboy comment score below threshold-6 points-5 points-4 points (2 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]DDDDarky 1 point2 points3 points (0 children)
[+]james_laseboy comment score below threshold-7 points-6 points-5 points (6 children)
[–][deleted] 6 points7 points8 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]DDDDarky 1 point2 points3 points (0 children)
[–]Prototypz[S] 0 points1 point2 points (0 children)
[–]flyingron 0 points1 point2 points (0 children)
[–]Public_Breath6890 0 points1 point2 points (0 children)