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:

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Article Tags: , , , ,