



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Integer variable
int mint
Double variable
double xval
Character variable
char ch
int * mptr
location of an int
Address
Contents
int * mptr
-^
*mptr
mptr = & mint;
-^
The variable is reassigned tobe the location of mint
-^
Now:
*mptr
Address
Contents
mint
double values[ 7 ]
Equivalently, you could declare apointer
-^
int * valuesPtr;valuesPtr = values;
struct entry{
int
value;
struct entry *next;
}
-^
Example: Using a linked list:struct entry node1, node2;node1.next = &node2;