C/c

Advertisement


Question
what are the advantages and disadvantages of function in c language?

Answer
Hi Ritu

Advantages:
Your code looks clean
A part of code that requires multiple compution can be done at once
It can be reused later if kept in a form of a header file

Disadvantages:
It requires more execution time
Too much of recursion in a function can cause stack overflow which in term can make the program crash.

regards
Joydeep Bhattacharya
http://www.scodz.com

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joydeep Bhattacharya

Expertise

Ability to solve C and Data Structure problems and puzzles with simple and easy to understand logic.

Experience

C, C++, Java, Data Structure, PHP, Web Designing

Organizations
http://www.scodz.com Designation: webmaster

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Past/Present Clients
http://analysingc.50webs.com http://www.funforu.com

©2012 About.com, a part of The New York Times Company. All rights reserved.