ee357-HW1-Solutions-Fall09-Nazarian

ee357-HW1-Solutions-Fall09-Nazarian - EE 357 Homework 1...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 EE 357 Homework 1 Fall 2009 Nazarian Solutions Assigned Tue. Sep. 1 st Due: Friday Sep. 11 th at 1pm (RTH109) Score: ________ 1) a. short int x = 13; 0x000D b. short int x = -32,767; 0x8001 c. unsigned char = 246; 0xF6 d. int x = -4096; 0xFFFFF000 e. unsigned char x = 193; 0xC1 f. int x = -1; 0xFFFFFFFF g. unsigned char x = ‘a’; 0x61 h. short int x = 40; 0x0028 i. unsigned char x = ‘0’; 0x30 j. char x = -2; 0xFE 2) Type/Size Maximum Minimum char 0x7f 0x80 unsigned short int 0xffff 0x0000 int 0x7fffffff 0x80000000 3) 4) Result from 3.) Signed Overflow Occurred Unsigned Overflow Occurred i T T ii F F iii F T iv F T i.) 6 F E 1 3 2 6 D + 1 A 2 4 F ii.) 4 B A 7 + 3 1 6 C 7 D 1 3 iii.) E 1 8 A + B C 5 5 9 D D F iv.) 9 0 D 6 0 0 1 5 + 1 9 0 E C
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 5) a. 2 19 = ? i. 9K ii. 512K iii. 512M iv. 256K v. 256M b. 2 36 = ? i. 64M ii. 64G iii. 8M iv. 8G v. 8T c. 2 43 = ? i. 8G ii. 8T iii. 16M iv. 16G v. 16T d. 2 24 = ? i.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/14/2010 for the course EE 357 at USC.

Page1 / 6

ee357-HW1-Solutions-Fall09-Nazarian - EE 357 Homework 1...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online