CS 2110 Lecture Notes - Lecture 1: Strong And Weak Typing, Natural Number
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.