HOME
FUNDAMENTALS
SETUP
MOVEMENT
REMOTE CONTROL
SENSING
---
-
-
-
Exit
- :
...
...
Check Your Understanding:
1. Where should you declare a function in a program?
It is part of the pragma statements
Between the pragma statements and task main
Right after task main
Anywhere in the program as long as it is used before it is declared
2. When the robot reaches a function call in the program, it runs the code in the body of the function.
True
False
3. A parameter is a special variable that allows you to pass data into a function.
True
False
Optimizing Code
Incorperating Functions