Pointers in C

Prem Tiwari - - C Programming Tutorial

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:

Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer and a blogger by hobby.

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.