Pointers: Anush Kuchipudi Sanjeev Kumar Gupta
Pointers: Anush Kuchipudi Sanjeev Kumar Gupta
prepared by
Anush Kuchipudi
Sanjeev Kumar Gupta
Content
1. Pointers
4. Pointer to functions
5. Pointer to pointer
6. Enumerations
POINTER
Pointers are variables that contain memory addresses as their values.
FILE *fptr;
int *a;
float *b;
char *c;
Once you've got the pointer, you can assign the address of
the right sort of function just by using its name like an array
(*func)(1,2); /* or */ func(1,2);
POINTER TO POINTER
3 -12 -14
The tag_name is not used directly. The names in the braces are
symbolic constants that take on integer values from zero through n.
As an example, the statement:
enum colors { red, yellow, green } ;
Creates three constants. red is assigned the value 0, yellow is assigned
1 and green is assigned 2.
OUTPUT