[prev] 28 [next]

The C View of Data

A C program sees data as a collection of variables

int g = 2;

int main(void)
{
    int   i;
    int   v[5]
    char *s = "Hello";
    int  *n = malloc(sizeof(int));
    ...
}


Each variable has properties e.g.  name,  type, ...