general stuff 2 Flashcards
parameter
local variable th at stores an incoming argument
a. The scope of a parameter(local variable th at stores an incoming argument) is limited to the function which uses it.
True
b. When a function with default arguments is called and an argument is left out, all arguments that come after it must be left out as well
True
c. You cannot use the assignment operator to copy one array’s contents to another in a single statement
F matlab only
array
a sequence of items of the same type that are contiguously stored in memory
b. Parallel arrays
two or more arrays that have the same size where data match up based on index
- Declare an array of 5 integers without providing a size declaration
Int Array [] = {1,2,3,4,5};
set rand timer to begin
srand(time(0))
random number
rand()%max