Computer Science, asked by ni3phoenix, 1 year ago

what are functions???


plzz help​

Answers

Answered by subbpavar
3

Answer:

Here is the skeleton of the functions in programming language.

A function can be classified into 2 types namely library functions and user defined functions.

If a  program is divided into functional parts then it will be independently coded and later combined into a single unit.The independently coded programs are called Sub programs.It is otherwise known as FUNCTIONS.

The user defined functions are of three elements.

Function definition.

Function call.

Function declaration.

Categories of functions:

Depending on the arguments the function may belong to the following categories.

Function wit no argument and no return value.

Function with argument and no return value.

Function with argument and return value.

Function with no argument and return value.

Function with multiple value.

There are three ways in which can pass arguments to the functions:

Call by value

Call by reference

Call by address

Explanation:

It has following advantages,

It facilitates TOP_DOWN  modular programming.

The length of the program can be reduced.

Easy to find out the errors.

A functions can be used by many other programs.

Answered by Anonymous
3

Answer:

function

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.

Thank you ☺️❤️

Similar questions