r/C_Programming • • Aug 08 '26

Question Doubt about pointers and arrays

Hey everyone! I'm a newbie to C and was just learning about pointers and arrays and their relation.
My doubt is really stupid but why would I use subscripting over using pointers?
It's much harder and seems pointless considering modern compilers will have negligible difference in speed. Any help would be most appreciated! Thanks!

(If it's any help, I am learning from C Programming - A Modern Approach by K.N. King and just finished chapter 12)

Note: I am not saying subscripting is better but I don't see why I would use pointers over it in most cases.

19 Upvotes

55 comments sorted by

View all comments

Show parent comment

3

u/Valuable_Leopard_799 Aug 08 '26

I was of the impression that this was proposed and thrown out many many times. I've read blogposts from 17 years ago from people proposing this.

(Not sarcasm, genuinely asking) Is there anything different about now?

5

u/glasket_ Aug 09 '26

The current committee is far more open to making changes than 17 years ago. The proposal was already integrated last year.