1 2 3 4 5 6 7 8 9 10

cdecl>explain int a[5][20];
declare a as array 5 of array 20 of int

a

IMAGE imgs/lec-07.sli04.gif

0

4

IMAGE imgs/lec-07.sli05.gif

a[0][0]

a[0][19]

a[4][0]

a[4][19]

Unix Command line arguments Consider the prototypes:
int main (int argc, char* argv[]); int main (int argc, char argv[][]);

with command line>

convert 13 to bits

IMAGE imgs/lec-07.sli06.gif

In UNIX all the declarations of argv produce an access
array which guarantees that
argv[argc] is NULL

January 22, 1999

Page 2

copyright UoA