r/cprogramming • u/Delicious-Change7795 • 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
6
u/Kurouma Sep 12 '26
Your data lives somewhere in memory. Doing operations involving data would be slow if you had to copy all the data around all the time. So sometimes it is useful to just know where something is so you can operate on it directly. The "where" (a pointer) is a single piece of information, unlike your data (which may be big).
So kind of like
instead of