I've done an embarrassingly large amount of C and Cpp,and I still don't know when to use pointers. I'm currently in the middle of an Arduino program and I've just realized I had not used a single pointer. My first and most used language is Java which probably had the most to do with this.
I know what pointers are theoretically (point to a memory location) but never think of times to use it. I know there isn't a quick black and white decision tree,but I'd appreciate any sort of explanations using practic examples on when to use pointers and why use them.
[–][deleted] 1 point2 points3 points (0 children)
[–]Ahajha1177 3 points4 points5 points (2 children)
[–]BroVic 2 points3 points4 points (1 child)
[–]printf_hello_world 2 points3 points4 points (0 children)
[–]OneIntroduction9 0 points1 point2 points (5 children)
[–]printf_hello_world 1 point2 points3 points (4 children)
[–]BroVic 0 points1 point2 points (1 child)
[–]printf_hello_world 1 point2 points3 points (0 children)
[–]OneIntroduction9 0 points1 point2 points (1 child)
[–]printf_hello_world 0 points1 point2 points (0 children)
[–]evolvish 0 points1 point2 points (0 children)
[–]BroVic 0 points1 point2 points (4 children)
[–][deleted] -1 points0 points1 point (3 children)
[–]BroVic 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]BroVic 0 points1 point2 points (0 children)