What is wrong with the following program segment?
```Main
Declare Apples As Integer
Set Apples = 4
Call Snack(Apples)
Write “You have “ + Apples + “ apples”
Write “and “ + Oranges + “ oranges”
End Program
Subprogram Snack(Fruit)
Declare Oranges As Integer
Set Oranges = Fruit + 2
End Subprogram```
a. you cannot call a subprogram that has only one parameter
b. you cannot declare variables within a subprogram
c. you cannot access a variable that has been declared locally within a subprogram outside that subprogram
d. nothing is wrong with the code segment
C
You might also like to view...
A docking station can be used to connect a ________ to a full size keyboard, monitor, and other devices in an office setting
A) notebook computer B) mainframe computer C) desktop computer D) server
Use the Insert Picture feature to use a photograph as a background on a slide
Indicate whether the statement is true or false