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:

About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

Tags: , , , ,