Posted by : Unknown Minggu, 07 September 2008

Pointer is a special variable in which the value stored are the addresses of some other variable(or function also in some cases)
int *a;

The statement written above means that a is a special variable(i.e. pointer) that will store an address of another variable which is integer.
For eg.


int *a;
int b=10;
a=&b;

then it will be like this-



Here 3465 is address for variable a and 1217 is address for variable b.


NOTE:All variables store integers bcoz address are always integers....
thus if we write

char *a;

It will not mean that a will store character it means that it will store the address of some variable whose datatype is char.

Description: C Pointers Lesson
Rating: 4.5
Reviewer: Unknown
ItemReviewed: C Pointers Lesson

Leave a Reply

Monggo Tinggalkan Jejak Kaks :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Popular Post

Labels

Arsip Blog

Followers

- Copyright © 2013 shad0w-share | Designed by Johanes Djogan -