
Hi there! Great question, let’s clear it up for you.
A pointer is indeed a type of variable in C programming. But, unlike regular variables that store actual values, a pointer stores the address of a variable in memory.
Think of a pointer like a directional sign pointing to where something is stored, rather than what is stored there. When you create a pointer for an integer with int* pt;, you're essentially saying, "I want pt to hold the address of a memory location that contains an integer." This is why we use the symbol * in pointers—it denotes that the variable is meant to store a memory address.
So, yes, while a pointer is a kind of variable, it differentiates itself by holding addresses rather than values directly. Remember, the variable that pt points to will be manipulated by accessing the address stored in pt.
Hope this helps! Let me know if you have more questions or need further clarification.
Our Experts
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer