2 ms·
If you think that though, you haven't got a clear picture of what pointers are and how they work. The pointer itself and thing it is pointing to are two complet
by rkangel 11y ago
If you think that though, you haven't got a clear picture of what pointers are and how they work. The pointer itself and thing it is pointing to are two completely different variables in memory. Being unclear about the difference is likely to cause lots of problems when coding C.
Using a pointer to iterate through a string/array/other data structure, that is stored in const is a completely standard thing to do.
- Terribledactyl 11y agoI do get what's going on here, maybe poor example. I was trying to show off some confused ways I've seen pointers and const used together, in attempt to confuse people. Some corollary of Poe's law maybe at play.