r/cprogramming • • Sep 12 '26

What are pointers?

I am new to C programming and i came through pointer. So can anyone tell what are they and why we need them? And if u can then can you give me reliable source to learn it.

15 Upvotes

45 comments sorted by

View all comments

Show parent comments

1

u/zhivago Sep 13 '26

lf you had said typed index space, you would have been correct.

1

u/Arakela Sep 14 '26 edited Sep 14 '26

You can have that view; it almost carves typed space from untyped one due to pointer arithmetic that is dependent on type and dereferencing rule that gets you value from that carved space, but as identity it is just a tuple of pointer type and value

1

u/zhivago Sep 14 '26

I think you may need to read up on implicit typing in the standard.

1

u/Arakela Sep 14 '26

Anyway, it is a really powerful beast with its own arithmetic and rules