[prev] 32 [next]

Exercise 6: Properties of Variables

Identify the properties of each of the named objects in the following:

int a;           // global int variable

int main(void) {
   int  b;       // local int variable
   static char c;// local static char variable
   char d[10];   // local char array
   ...
}

int e;           // global? int variable

int f(int g) {  // function + parameter
   double h;     // local double variable
   ...
}