Procedures And Functions Flashcards
0
Q
What are the uses if procedures and functions
A
Avoids repeating code
Makes code more readable
Helps in debugging
Can use a procedure in other programs
1
Q
What are procedures and functions
A
Both provide a section of code that can be accessed by the main project code as required
2
Q
What is the difference between function and procedure
A
A function always returns one piece of data
A procedure may or may not return one or more pieces of data