Previous Lecture | lect04 Before Slides | lect04 Annotated Slides | Next Lecture |
Code from lecture
Topics
Functions and funtion mechanics
- Function declaration, definition, and call
- Formal and actual parameters, return type
- What happens when we make a function call
- Variable scope and lifetime
- Local vs. global variables
- Drawing memory diagrams
- Stack!
- Passing parameters to programs/main()
- Example programs taking input from command-line