Friday, August 26, 2011

What is a Pointer

A Pointer does not store a value directly like variables. It simply store the reference of another value. The variable the pointer is refers to is called "pointee".
















#include
int main(){
    int a;
    int *ptr;
    a=42;
    ptr=&a;
    printf("%d\n",*ptr);
    return 0;
}

No comments:

Post a Comment