What is the difference between a Subroutine and a Function-Interview Question

Showing Answers 1 - 2 of 2 Answers

There are two types of methods: subroutines and functions.Ideally, each function or subroutine will perform a distinct, logical task.Functions are very similar to subroutines?their syntax is nearly identical, and they can both perform the same actions. Functions, however, return a value to the code that called it.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions