Computer Science, asked by Hiteshi3155, 9 months ago

What do you mean by function?

Answers

Answered by snehasinghsingh8153
3

Answer:

A function is a unit of code that is often defined by its role within a greater code structure. Specifically, a function contains a unit of code that works on various inputs, many of which are variables, and produces concrete results involving changes to variable values or actual operations based on the inputs

Answered by letmeanswer12
1

In computer, function is a sequence of program instructions that performs a specific task.

Explanation:

  • A function is a block of ordered, reusable code used to perform a single, related action. Functions give your application greater modularity and a high degree of code reuse.
  • They are called differently by various programming languages, such as methods, subroutines, procedures, etc. A function description consists of a Function name, list of Parameters, Body of functions, and Return type.
  • Most programming languages come with a collection of in-built functions that are stored in a library. We may also write our functions to accomplish specialist tasks.

Similar questions