answersLogoWhite

0

Why you should use functions?

User Avatar

Anonymous

16y ago
Updated: 8/17/2019

Functions allow the ease of updating repeatedly used sections of code. For example if I wanted the computer to print out the current values of certain variables in various parts of my program I could write the function once and call it many times instead of copy pasting it into the various areas. The benefit to this is that lets say i wanted to change which variables I wanted to print out, without using a function I would have to go in and find and change every place I copy pasted the original code. Whereas with a function all you need to do is change it in one place and your done. Another reason is that it will reduce the amount of code you ultimately need to write.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What are the graphic functions in C?

None. You should ask about TurboC, or MsWindows, or X11, or whatever platform you use.


Can the TI30xs calculator be use on the ACT?

It should be okay, since it does not have any of the prohibited functions listed by ACT.


How do you write a menu driven programmein c?

Learn how to use callback functions and the answer to the question should be evident.


What are the numbers formulas and functions used in calculations called?

You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.You can refer to them generally as values. Formulas can use operands and functions use arguments.


Why should one use URL encoding?

Someone should use URL encoding when they are making code for a website. This is so the website functions properly and allows the visitor to access the site.


What is the difference between pre defined functions and user defined functions?

Predefined functions are functions that have been written and we can use them in our C++ statements. But we must know how to use each of these predefined functions.


How do you select and use appropiate tools and functions for complex tasks?

what most software tools and functions can be used for and how to use them and how to use appropiate tools and functions for more complex tasks


What jobs use functions?

mostly all jobs use functions because they all include moving


Should you use a hyphen in easy to use?

Yes, if "easy-to-use" is describing something else. An example would be "Answers.com is an easy-to-use tool for gathering knowledge."


What functions can an accountant use in Excel?

There is a specialised category of Financial functions that an accountant could use, but they would use all sorts of different Excel functions besides the Financial functions. So regular ones like SUM and MAX and so on.


What are some functions of an urban are?

Some functions of an urban area are location, land use, and functions of a city.


What are the functions of urban administration?

Some functions of an urban area are location, land use, and functions of a city.