In this tutorial, we will learn about Pointer in C. C Pointer are variables which store the address of another variable. We can create a Pointer variable of any type such as int, char, array, function, or any other pointer. Before going further it is important to know that how we can declare a pointer variable in C.
Declareing a Pointer in C:
To declare a Pointer variable in C. We have used a * (asterisk symbol). Please check out the following example program.
#include <stdio.h>
int main()
{
int num = 20;
int* p = #
}
In the above example, you can clearly see we have created a normal variable class num and initialised this variable with the value 20. After that, we have created a pointer variable called p with the help of *(asterisk symbol) and stored the address of num variable(operator ‘&’ returns the address of a variable) into this pointer variable.
Parvesh Sandila is a results-driven tech professional with 8+ years of experience in web and mobile development, leadership, and emerging technologies.
After completing his Master’s in Computer Applications (MCA), he began his journey as a programming mentor, guiding 100+ students and helping them build strong foundations in coding. In 2019, he founded Owlbuddy.com, a platform dedicated to providing free, high-quality programming tutorials for aspiring developers.
He then transitioned into a full-time programmer, where his hands-on expertise and problem-solving skills led him to grow into a Team Lead and Technical Project Manager, successfully delivering scalable web and mobile solutions. Today, he works with advanced technologies such as AI systems, RAG architectures, and modern digital solutions, while also collaborating through a strategic partnership with Technobae (UK) to build next-generation products.
