Advertisements
Advertisements
प्रश्न
What are the advantages of defining a method in a program?
थोडक्यात उत्तर
उत्तर
The advantages of defining a method in a program are as follows:
- Because the same program segment can be used repeatedly by changing the input values to achieve the desired outputs, it promotes reusability and shortens the program's duration.
- It decreases the amount of memory.
- Because the program is relatively shorter, it also makes debugging easier.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: User - Defined Methods - EXERCISES [पृष्ठ ३३७]