1.

What Is The Difference Between A Subroutine And A Function?

Answer»

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.

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.



Discussion

No Comment Found