हिंदी

What are the advantages of defining a method in a program? - Computer Applications

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:

  1. 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.
  2. It decreases the amount of memory.
  3. Because the program is relatively shorter, it also makes debugging easier.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: User - Defined Methods - EXERCISES [पृष्ठ ३३७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 5 User - Defined Methods
EXERCISES | Q VI. 12. | पृष्ठ ३३७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×