Pointers in C

A Pointer in C programming language is playing a key role. A pointer is very easy and fun to learn while learning the C programming. As you know, every variable memory location and also every location have some defined address, which can be accessed by using the ampersand (&) operator before the variable name.

What is Pointers in C

What is Pointers in C

A Pointer is variable which holds the address of another variable which direct address of memory location of a variable. See the below example of pointer:

The output of above program is:

How to define a Pointer variable in C

You can define a pointer variable by using the (*) symbol before the variable defined. See the below how to define a pointer type variable in C programming language:

Below is the simple example of pointer type variable.

The output of Above program is:

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs