1a Video
Types
Unsigned ints - always positive
char c = ‘a’ and char d = 97 both print a
Cout is designed to print ASCII so it must be specifically told int otherwise
Size Types:
int = 4 bytes
unsigned int = 4 bytes
double = 8 bytes
float = 4 bytes
char = 1 byte
Variables
Must always declare variable
local and global variables
Newlines
endl = \n & immediate print (flush)
*\n doesn’t gaurantee immediate output*
Cin and Cout
Cin stops at the trailing white space. Ex) “Hello world” would print Hello