RSS Feed for This PostCurrent Article

Difference between a function and a subroutine ?

A function accepts any number of parameters (possibly zero), does something with them, and returns a value. A subroutine is performs an action, but doesn’t return a value.
There are two differences between a function and a subroutine: A)How they are invoked. B)How they are accessed.
A function call has the following syntax ::
function(arg1, arg2, …)
where: function [...]

Trackback URL

Post a Comment