Procedure 1int a() { int k; k = 5; return k+1; } |
Procedure 2int tmp; void s(int *i, int *j) { tmp = *i; *i = *j; *j = tmp; } |
Procedure 3int s(int **i) { return *i[3]; } |
Procedure 4int s(int **i, int j, int k, int m) { return *(i[3*j+5*k] + (m-3)); } |
Question 2Write the program lslt. This program lists all files in the current directory, with the exception of those beginning with a dot, in the following order:
|
Question 3
|
|
Look at the following two programs:
Program 1main() { int i, j; i = 0; while (fread(&j, 4, 1, stdin) > 0) i++; } |
Program 2main() { int i, j; i = 0; while (read(0, &j, 4) > 0) i++; } |
Random Extra CreditI drove through Charles Town, West Virginia two days ago.What is the connection between that town and the eclectic rock group King Crimson? |