1.

Explain any three properties of functions.

Answer»

1. It performs some well-defined task, which will be useful to other parts of the program.

2. The rest of the program doesn’t t have to know the details of how the function is implemented. This can make the rest of the program easier to think about.

3. One part of the program can be rewritten, to improve performance or add a new feature (or simply to fix a bug), without having to rewrite the rest of the program.



Discussion

No Comment Found