CIS 1057 Chapter Notes - Chapter 3: Return Statement, Input Device
Document Summary
It"s important to have multiple numerical data types. Integers are smaller in memory than floating point numbers. Character data type char data type represents a single character (e. g. letter, number, special, etc) chars must be enclosed in single quotes (unless entering data to program, e. g. enter a not a") Since chars are represented by an integer value, they can be compared numerically. Ascii code e. g. a" <= q" is a valid expression. Ascii is a particular code that maps integers to character values. Codes 32 to 126 are printable characters. 0 to 31 and 127 to 255 are control characters and provides a command to the output device rather than being printed out. Executable statements are any operations that are executed by the program. An instruction that stores a value or a computational result in a variable. Form of an assignment statement variable = expression. E. g. a = 7 * 8 + z.