CS 2110 Lecture Notes - Lecture 1: Strong And Weak Typing, Natural Number

71 views1 pages
14 Jun 2017
Course
Professor

Document Summary

Lecture 1 - types: type: set of values together with operations on them. , -3, -2, -1, 0, 1, 2, 3, Ex: x = 100; x = hello world". First we declare x as an int type, then we can store something in it. So if we then wrote x = hello world"; we would get an error, because hello world" is not an int. Values can only be in the range -2^(31) 2^(31) - 1. Integer. max_value: name for max int value, i. e. 2^(31)-1. So if we want to let d be a double d=21e20. You didn"t declare d as a double.

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