Recursion
A function that calls itself. Must have base case and recursive case.
Recursion vs Iteration
Recursion: Elegant for divide/conquer; risk of stack overflow; more overhead. Iteration: Generally faster; uses less memory.
Global variable
Declared outside functions; accessible anywhere.
Local variable
Declared inside function; only accessible within that function.
Pass by value
A copy of the data is passed; original unchanged.
Pass by reference
A memory address is passed; original can be modified.
What is a breakpoint?
Pauses program execution at a specific line for debugging.
What is step-over?
Executes current line and moves to next; does not enter called functions.
What is step-into?
Enters a called function and debugs line-by-line inside it.
What is a watch variable?
Monitors the value of a variable during debugging.