Free
|
||
|
C Language Tutorial with Free C Programs |
||
Pointers in C : - C Programming TutorialA pointer is simply a memory address and its concept is easy to understand. Let us declare a variable num int num; Now let us declare another variable num_ptr int *num_ptr = &num num_ptr is declared as a pointer to int. We have initialized it to point to num as shown above.
type * variable name
int *ptr; int * is the notation for a pointer to an int. & is the operator which returns the address of its argument. The opposite operator, which gives the value at the end of the pointer is *.
© COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM |
||