Skip navigation

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


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: