answersLogoWhite

0

Functions act as logical separations of functionality to help the developers keep their code organized and robust.

Generally you should code for readability and correctness, let the compiler worry about optimizing. As long as you are following proper CS principles, the compiler will generally do a better job of optimizing than you will.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What is grace Murray hopper known for?

She was one of the first programmers of one of the first computers. See the related link for more information.


What is the advantage of using functions and write a c program to explain about built-in functions with examples?

C does not have any built-in functions as such. The language allows the programmer to create functions or to include functions contained in external function libraries, but the language itself has no functions whatsoever. The C standard library is not considered built-in since programmers are free to ignore the standard library completely. However, the library contains highly efficient, optimised functions that are considered "general purpose" and therefore useful to the majority of programmers. The programmer can use these functions as the basis for more complex, more specialised functions. The main advantage of functions is that they allow programmers to break programs down into a series of simple subroutines, each of which is handled by a function. Functions can call other functions, including themselves, and can be called as often as required. Although some code duplication is inevitable in any program, by placing duplicate code in a function, the programmer ensures that the code remains consistent. Since the function code is in one place, it is much easier to maintain that code, there is no need to make multiple changes across all duplicates, which is error prone and could introduce inconsistencies. Also, with well-named functions, code becomes self-documenting, making it easier to express ideas in code without the need for verbose comments within the code itself, which tends to be distracting rather than helpful.


Does the UK need more computer programmers?

yes yes yes yes yes


What is the comparative and superlative of effcient?

more efficient, most efficient


What is the salary of a java programmer and a c plus plus c programmer?

Java programmers earn an average of £52,500. C++ programmers earn an average of £57,500. See sources and related links, below, for more information.

Related Questions

How do computers improve efficiency in an office?

Computers do many functions much faster and more accurately than humans. Numerical calculations, document preparation, record retrieval are just a few common tasks which become much more efficient when computerized.


What is grace Murray hopper known for?

She was one of the first programmers of one of the first computers. See the related link for more information.


What are the advantages of special purpose computers?

Special purpose computers are generally faster and more efficient at certain types of operations than normal computers.


What are Advantages of special purpose computers?

Special purpose computers are generally faster and more efficient at certain types of operations than normal computers.


Can i see Pictures of types of computers and functions?

thetend.com for more info


Why are file servers more efficient than stand alone computers?

no specific answer to that


The use of computers in recording business events?

has made the recording process more efficient


How efficient are personal computers?

Because of dramatic improvements in computer components and manufacturing, personal computers do more than the largest computers of the mid-1960s at a fraction of the cost.


Are plant cells more efficient in carrying out its functions than animal cells?

No, Plants are not more efficient. Animals are more efficient because they coordinate by hormones and CNS ( Central Nervous System ). But plants coordinate only by hormones, therefore animals are more efficient.


Would you agree that computers have made us more efficient?

we are now more advanced to everything by just using our PC technology.


What is the advantage of using functions and write a c program to explain about built-in functions with examples?

C does not have any built-in functions as such. The language allows the programmer to create functions or to include functions contained in external function libraries, but the language itself has no functions whatsoever. The C standard library is not considered built-in since programmers are free to ignore the standard library completely. However, the library contains highly efficient, optimised functions that are considered "general purpose" and therefore useful to the majority of programmers. The programmer can use these functions as the basis for more complex, more specialised functions. The main advantage of functions is that they allow programmers to break programs down into a series of simple subroutines, each of which is handled by a function. Functions can call other functions, including themselves, and can be called as often as required. Although some code duplication is inevitable in any program, by placing duplicate code in a function, the programmer ensures that the code remains consistent. Since the function code is in one place, it is much easier to maintain that code, there is no need to make multiple changes across all duplicates, which is error prone and could introduce inconsistencies. Also, with well-named functions, code becomes self-documenting, making it easier to express ideas in code without the need for verbose comments within the code itself, which tends to be distracting rather than helpful.


What are major food service functions?

Food service functions to make an efficient system from the kitchen to the customer. The more protocol implemented, the better the system works.