Skip navigation

Tag Archives: string

This solution is for the book I am currently reading. All of my notes and solutions are available at Google Code.

Here is my work for problem 2.7:

Code for show bytes.

What would be printed as a result of the following call to show_bytes?

char *s = "ABCDEF";
show_bytes( s, strlen( s ) );

Note that letters 'A' through 'Z" have ASCII codes 0x41 through 0x5A

41 42 43 44 45 46