answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the advantage of using functions and write a c program to explain about built-in functions with examples?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

The concept of competitive advantage is as important for non-profit organizations as it is for profit organizations Do you agree with this statement of not Explain with examples to justify your an?

The concept of competitve advantage is as important for non- profit orgnizations as it is for profit orgnizatios Do you agree with this statement or not? Explain with examples to justify your answer.


The concept of competitive advantage is as important for non-profit organizations as it is for?

"The concept of competitive advantage is as important for non-profit organizations as it is for profit organizations". Do you agree with this statement or not? Explain with examples to justify your answer. "The concept of competitive advantage is as important for non-profit organizations as it is for profit organizations". Do you agree with this statement or not? Explain with examples to justify your answer.


Explain why a niche company might have an advantage in a market Would price necessarily be an advantage Explain why or why not?

Explain why a niche company might have an advantage in a market would price necessarily be an advantage explain why or why not


Explain the derivative functions of money?

Explain the derivative functions of money?


What is an array and explain its advantages and disadvantages?

what is array? explain with its advantage.


Explain briefly the different functions of human resource management?

define hrm briefly explain various functions of hr


Functions of database manager in Database management system. explain the functions with example.?

functions of DBA in DBMS


Explain Theory of absolute cost advantage by propounded by Adam smith?

explain theory of absolute cost advantage as propounded by Adam smith


Define the term sales management explain the functions of sales management in detail quoting suitable examples?

Sales management is the practical application of sales techniques. Functions are like product sales where a sales person walks round selling products.


What are two functions of the cili?

Explain cili


Explain the functions of the price system in the economy?

functions and roles of price in our economy in tanzania


Management functions and management skills?

what are the management Functions?Briefly explain each one.