ECS 36A Lecture Notes - Lecture 3: Lookup Table, Iterator, Unicode

255 views3 pages
Verified Note

Document Summary

Ecs 36a - lecture 3 - control flow. 8-bit signed integer [-128, 127] : there is one less positive number because of 0. Signed integers (negative) -- their most significant bit is a 1. 00 b0,b1,b2,b3 ff : little endian vs big endian. Let x: u8 = 255 (rust) u means unsigned, 8 means 8-bit. Let y: u8 = x+1 increment x by 1 and results in integer overflow. Integer overflow is a vulnerability that is hard to catch, but in python integers can hold values of arbitrary sizes but you give up speed for this. Though you may not have integer overflow in python, be aware of it. Ascii designed where all english numbers & punctuation are mapped using integers less than 128. Msb of 0 & 128 is 0. : ascii with msg of 1 are used to rep special characters (control) What"s wrong with this? limits the standard to only english unable to program in other languages.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents