DEV Community

Discussion on: Understanding Pointers in c++

Collapse
 
alexgwartney profile image
Alex Gwartney

Ok so I think I just answered my own question. From here. Esently the array is just a pointer to the first element. So its actually just referencing the value automatically. Which makes more sense of why I can just use the for loop in the way I do to access the array normally. tutorialspoint.com/cplusplus/cpp_p...