• Home
  • Tutorials
  • Interviews
  • Info Seed
  • Forums
  • Projects
  • Links
  • Contact Us
C Language
C POINTERS
INTRODUCTION
What are POINTERS?
Illustration of POINTER assignments
Illustration - II
Illustration - III
POINTER arithmetic- POINTER + number
POINTER - number
POINTER - POINTER
NULL POINTER
Common Errors
DEREFERENCING NULL
DANGLING POINTER
REFERENCING DE-ALLOCATED MEMORY
MEMORY MANAGEMENT

 

 

POINTERS

The pointer, as the name suggests, is something which is pointing to or directing to something. The pointer is used to store the address of another variable and the data type of the pointer is same as data type of variable it is pointing to. As the variable which points to other variable is called pointer and the variable which is pointed to by the pointer is called pointee. We represent the relation between the two as:

www.exploreroots.com

We can also have pointer to pointer and we declare it as:

Int **z;

z=&y;

And the memory map can be represented as:

www.exploreroots.com

NEXT let’s discuss some operations on pointers.

 

 


previous next
| Copyright © 2009 exploreroots- All Rights Reserved | Disclaimer |