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 [पृष्ठ ३३७]