CS 105 Homework Assignment
Due: As Indicated by the Calendar
Use a text processing system (e.g., latex, troff, frame)
to answer the following questions.
Turn in a pdf named: h1.pdf
Some of them are Practice problems. Try to do them
without looking at the solutions in the book.
- Problem 2.2, pg 35.
- Problem 2.3, pg 36.
- Problem 2.5, pg 45.
- Problem 2.15, pg 54.
- Problem 2.17, pg 61.
- Problem 2.22, pg 74.
- Problem 2.23, pg 74.
- Problem 2.29, pg 86.
- Document the following code, and execute it by creating a main program
with some variables and then calling this routine
(turn in
a commented text of the program and the run
of the program on some data.
Capture you screen with
script or someother program).
typedef unsigned char *pointer;
void show_b (pointer start, int len)
{
int i;
for (i=0; i<len; i++)
printf("0x%p\t0x%.2x\n",
start+i, start[i]);
printf("\n");
}
Mike Erlinger
Last Modified Thursday, 30-Jun-2011 12:43:55 PDT