Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

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.

OpenStudy (anonymous):

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)

OpenStudy (anonymous):

procedure is function?

OpenStudy (anonymous):

void function is procedure?

OpenStudy (anonymous):

Technically, everything is a procedure :-D

OpenStudy (anonymous):

but void function then is not function because function need to return something? :D

OpenStudy (anonymous):

I guess that's the distinction made by languages between functions and mere procedures.

OpenStudy (anonymous):

yeah in PASCAL function and procedure are not the same

OpenStudy (anonymous):

In Visual BASIC too...they have different meanings.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!