answersLogoWhite

0

How do functions help?

User Avatar

Wiki User

11y ago

Best Answer

Without functions your code has to be written procedurally, which involves using many jump and goto statements to alter the flow of the code. However, having jumped to a new section of code, there is no automatic return path to the caller. The end result is spaghetti code that is difficult to both read and maintain. Functions support the concept of structured procedure calls, allowing programs to branch and return from specific code segments, making it much easier to follow the flow of the program. Functions allow highly complex procedures to be broken down into a series of simple function calls, each of which fulfils a minor but highly specific role within the overall procedure. Functions can also return values to the caller and function parameters and overloads allow the caller to alter the specific behaviour of a function, thus increasing the flexibility of the function, allowing the same function to be re-used and called in a wide variety of ways.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do functions help?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What do genes do to help cells carry out their functions?

What do genes do to help carry out their functions


What can a muscle cell do to help its functions?

help


What are the functions of fluorine?

To help blood circulatory maintain proper functions.


What are the functions of DEped?

to help children have knowledge


What are the functions of t-tubles?

They help you see.


What are the functions of roots84?

The functions of roots of 84 is that they help us get the solution of certain quadratic equations and therefore help us to plot the graphs correctly.


What are the functions of UNICEF and do they help with?

== == Help Children all over the world during crisis and help with the funding.


Do executive departments help Congress perform their functions?

No


The cerebrum controls what functions of your body?

It help's your body


What functions do fluorine have?

to help your blood function correctly


What are the functions of the legs of the 555 timer?

to help it stand


What are the functions of a air space?

to help u breathe