Computer Science 340
Programming Languages
Fall 2019, Siena College
Lecture 18: Datatypes
Date: Friday, October 18, 2019
Agenda
- Announcements
- Informational session by the Siena Center for Innovation and
Entrepreneurship, Wednesday 10/23 at 12:45 in RB 340. See the
email from Dr. Small for more information and RSVP to her if you
would like to attend.
- Language Project
[HTML]
[PDF]
: use the shared document to mention your ideas
- Exam 1 back and brief additional discussion
- Read Sebesta Sections 6.10-6.14 for Monday
- Problem Set 5: [HTML] [PDF] out
- Data types
Terminology
- primitive data type
- most/least significant bit
- endianness
- big endian/little endian/network byte order
- signed magnitude
- excess n
- 1's complement
- 2's complement
- floating-point representations
- scientific notation
- mantissa
- exponent
- floating point underflow
- bias
- complex data
- binary coded decimal
- enumerated type
- subrange type
Examples
- show_bytes
- ccomplex
- enum
- hello_pascal
- pascal_subrange
Links