Computer Science, asked by AbdulHafeezAhmed, 3 months ago

What are functions also known as? And do list out their merits and de merits too, please help me out with this ಥ_ಥ The best answer will be marked as brainliest and I'll give them 20 thanks

Answers

Answered by Eutuxia
11

Answer :

Functions are also known as methods.

Merits:

  • Function helps in reducing the code.
  • Modifying programs become easy when we use functions.
  • It divides program into number of segments hence making the program easy to understand.
  • It reduces the chances of errors. .
  • Modifications of a program becomes easier.
  • If there is any bug in function and the function is called at several places, then on editing the code at one place, all the bugs can be fixed.

Demerits :

  • Complexity of the program increases.
  • Execution speed decreases.

Know more :-

  • Function, also known as methods is a set of instructions which runs when it is called.
  • It is a piece of code that can perform a particular operation.
  • It may or may not return a value. There are two types of functions - Return type and void.

sreekarreddy91: Superb
Answered by mohammedasif122401
0

Answer:

Assalamualaikum bro am farzeen fathima

hope you remember me!

I've messaged uh in pinterest you haven't replied me yet?

anyway do respond there

Allah hafiz

Similar questions