Homework2

# Homework2 - Please fill the following table with “<”...

This preview shows pages 1–2. Sign up to view the full content.

Homework 2 1. Integer representation using 1’s and 2’s complement. Assume we have an integer type of 8bits, fill in the following table. Value 2’s complement 1’s complement Sign-Magnitude 3 0000,0011 0000,0011 0000,0011 1110,0000 7 1100,0000 1000, 0000 2. Expression evaluation in C language. In C language, if an evaluation expression contains both unsigned and signed values, then signed values will be implicitly casted into unsigned ones before evaluation.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Please fill the following table with “<” or “>”. Constant A Constant B Relation -1 0 < -1 0U > (unsigned)-7 -8 -7 (unsigned)-8 -7 -8 -39278753 39278752 -39278753 39278752U 3. Unsigned Multiplication. Solve the following equation group step by step. Notice that each value is represented by unsigned integer of 4-bits....
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern