What is the difference between calling a procedure, and executing it? I think the difference is that when you call a procedure, you are passing arguments and control to it, whereas when you execute it, you carry out the instructions within it.
Also, the running time of calling i.e. invoking a procedure is different from the running time of executing the entire procedure once it is invoked i.e. control jumps to the subroutine and then back to the caller (or elsewhere :-P)
procedure is function?
http://stackoverflow.com/questions/721090/what-is-the-difference-between-a-function-and-a-procedure
void function is procedure?
Technically, everything is a procedure :-D
but void function then is not function because function need to return something? :D
I guess that's the distinction made by languages between functions and mere procedures.
yeah in PASCAL function and procedure are not the same
In Visual BASIC too...they have different meanings.
Join our real-time social learning platform and learn together with your friends!