3. Initialization
 
In the absence of explicit initialization, external and static variables are guaranteed to be initialized to   zero; automatic and register variables have undefined (i.e., garbage) initial values.
– Internal variables are defined inside of any function.
– Declarations of variables within blocks are implicitly of storage class automatic.
 
  Example
int x = 1;
char squota = ‘\’;
long day = 1000L * 60L * 60L * 24L; /* milliseconds/day */

int binsearch(int x, int v[], int n)
{
    int low = 0;
    int high = n – 1;
    int mid;
    ...
}
 
 
 
이전페이지 / 4 / 다음페이지