answersLogoWhite

0

Importance of functions in c

Updated: 8/9/2023
User Avatar

Wiki User

13y ago

Best Answer

Based on execution

1. Iterative Function

2. Recursive Function

Based on Argument and return value

1. No argument No return value

2. With argument Without return value

3. With out argument without return value

4. With argument With return value

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Functions facilitates the programmers to break a large programming problem into smaller problems each solving a part of the big problem. Each function is a complete unit. They can call each other to provide their services.

If a program is divided into functional parts, then each part may be independently coded and later combined into a single unit. This approach clearly results in a number of advantages.

1. It facilitates top-down modular programming.

2. Length of a program can be reduced by using functions.

3. Debugging is easier.

4. Reusability of function increases.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago


A function is a self-contained block of code that performs a particular task.

Once a function has been designed and packed,it can be treated as a "Black Box" that takes some data from the main program and returns a value.

The inner details of operation are invisible to the rest of the program.

All that the program knows about a function is: What goes in and what comes out.

Every C program can be Consider a set of statements.


C functions can be classified into 2 categories,namely ,library functions and user-defined functions.
main is an example of user-defined functions.
printf and scanf belong to the category of library functions.

sqrt,cos,strcat

The main distinction between these two categories is that library functions are not required to be written by a programmer whereas a user-defined function has to be developed by the user at the time of writing a program.

However, a user-defined function can later become a part of the C program library.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

C does not have procedures, pascal has procedures. Therefor the is no answer to the question.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Function definiton syntax:

return_type fn_name(argument1, argument2,....argumentn)

{

_______________________

function body

_______________________

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Importance of functions in c
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the importance of using functions in a c program?

C programs do not function without functions.


What is the importance of functions in a c plus plus program?

Functions are very important in C++, as you can't write the simplest program to print hello without using a function. Overall you can say that function are building blocks of a C++ program. Functions can also be defined by the programmer to reduce program size.


What are the Functions and importance of preamble?

what is the function and importance of preamble


What are the importance of circular functions in everyday life?

importance of circular function


Can there be friend functions in c plus plus?

Yes, there can be friend functions in C++.


What are the in-built function in c plus plus?

C++ built-in functions are those functions that are provided for you as part of the language itself, and includes all of the C standard library functions (all of which were inherited from C) and is expanded upon by the C++ standard template library. C++ implementors may provide additional functions that are platform-specific, however these are not considered built-in functions becuase C++ is a cross-platform language. These are best described as 3rd party functions. The functions you yourself write are known as user-defined functions.


How you describe operations of stack ADT using c template functions?

No, because C does not support the concept of template functions. Template functions only exist in C++, never in C.


How do you override functions in c?

Not possible in C, only in C++


What is the importance of functions in art?

i don't know that's why i am asking you


To calculate odd and even parities which functions can be used?

could you be clear? what kind of functions you are asking? functions available in C, C++, java ? in C you can use mod() function or "%" operator to find the parities.


Define advertising explain how the process functions?

5 importance of agricuture


What is Nesting of functions in C?

Impossibility.