[EECS 183] - Final Exam Guide - Everything you need to know! (54 pages long)

383 views54 pages
EECS 183 Full Course Notes
1
EECS 183 Full Course Notes
Verified Note
1 document

Document Summary

Not a (a > b) (a >= b) (a < b) (a <= b) (a && b) (a || b) (!a) Ex: x += 5; is same as x = x + 5; When used in expressions cout << i++; cout << ++i; Assignment error: be sure to include [i] after array name. This only compares addresses, not the individual elements. Best solution is to use for loop. This prints all the elements in array. This is always passed by reference, no & needed. This is because it"ll take too much time to copy the values. Saves processing time (array elements aren"t copied) To prevent function from modifying an array put const in front of array in parameter. Single array element is passed by value. Initializing it: #row and #col still need to be constants, not variables. Initialize multidimensional arrays by grouping together initializers for each dimension. Or initialize with loops (two for loops.