what is functions? what are the uses of its?
Share
what is functions? what are the uses of its?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Functions are used because of following reasons – a) To improve the readability of code. b) Improves the reusability of the code, same function can be used in any program rather than writing the same code from scratch. c) Debugging of the code would be easier if you use functions, as errors are easy to be traced.
Functions :-
A technical definition of a function is :
A relation from a set of inputs to a set of possible outputs where each input is related to exactly one output.
Uses of Functions :-
Functions are used because of following reasons :
a) To improve the readability of code.
b) Improves the reusability of the code, same function can be used in any program rather than writing the same code from scratch.