Computer Science, asked by Prathamesh1810, 10 months ago

What is function and need of function?​

Answers

Answered by Utkarshkesharwani933
0

Answer:

A function is a set of statements that take inputs, do some specific computation and produces output. The idea is to put some commonly or repeatedly done task together and make a function so that instead of writing the same code again and again for different inputs, we can call the function.

Follow me

Mark as brainlist

Answered by BlackWizard
0

Answer:

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.

Similar questions