Question:
What are the advantages of the functions?
Answer:
Ø Debugging is easier<br><br>Ø It is easier to understand the logic involved in the program<br><br>Ø Testing is easier<br><br>Ø Recursive call is possible<br><br>Ø Irrelevant details in the user point of view are hidden in functions<br><br>Ø Functions are helpful in generalizing the program Source: CoolInterview.com
1. Code Re usability<br>2. Occupies less memory <br>3. Resilience 2 change i.e. error handling is easy<br>4. Logic becomes clear<br>5. Compiler takes less time 2 compile the program<br> Source: CoolInterview.com
Answered by: Ankita Leekha | Date: 7/25/2009
| Contact Ankita Leekha
advantages of functions<br>function makes program easily understanding and reliability<br>execution is faster<br>debugging is easily done<br> Source: CoolInterview.com
Answered by: sushma | Date: 11/25/2009
| Contact sushma
function is a subprogram which can perform some specific well defined task.<br>1.functions uses to reduce the length of the source program.<br>2.A large program can be divided into smaller programs known as functions which is used to understand the specific problem.<br>3.readability is good.<br>4.we can save time to user.<br>5.program execution is very fast.<br> but one disadvantage in function is jumping makes a lot of time to transfer the control from one task to another task. Source: CoolInterview.com
Answered by: krishnachaitanya | Date: 3/2/2010
| Contact krishnachaitanya
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|