Computer Science, asked by shahistha55, 6 months ago

what is Function? explain any two functions.​

Answers

Answered by aditya120411kumar
16

Explanation:

A function is a block of statements that performs a specific task. Let's say you are writing a C program and you need to perform a same task in that program more than once. In such case you have two options: a) Use the same set of statements every time you want to perform the task

Answered by Anshika9045
4

Explanation:

What is a Function in C?

Function in C programming is a reusable block of code that makes a program easier to understand, test and can be easily modified without changing the calling program. Functions divide the code and modularize the program for better and effective results. In short, a larger program is divided into various subprograms which are called as functions

Function in C

When you divide a large program into various functions, it becomes easy to manage each function individually. Whenever an error occurs in the program, you can easily investigate faulty functions and correct only those errors. You can easily call and use functions whenever they are required which automatically leads in saving time and space.

Similar questions