CS 105 Homework Assignment 1
Due: As Indicated by the Calendar
Use a text processing system (e.g., latex, troff, frame)
to answer the following questions.
Some of them are Practice problems. Try to do them
without looking at the solutions in the book.
- Problem 2.2, pg 30.
- Problem 2.3, pg 31.
- Problem 2.17, pg 55.
- Problem 2.22, pg 64.
- Problem 2.30, pg 79.
- Document the following code, and execute it by creating a main program
with some variables and then calling this routine
(turn in
(include the text in what you hand 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:44:43 PDT