answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

Can you assign your scope to subroutione in perl ex like this my sub fun name....definition of function...?

Yes, in Perl, you can assign a scope to a subroutine using the my keyword to declare variables within the subroutine, allowing them to be scoped locally to that subroutine. For example: sub fun { my $local_var = "I'm local"; # This variable is scoped to the subroutine print $local_var; } This keeps $local_var from being accessible outside of fun, ensuring encapsulation within the subroutine.


How does a function differ from a procedure?

In closed subroutine a subroutine stored outside the main routine can be connected to it by linkages at one or more locations. whereas in open subroutine is a set of computer instructions i.e. a subroutine that performs some particular program and insert them directly each and every time that particular function is required


What are stacks subroutines in 8085 microprocessor?

A subroutine is a group of instructions that will be used repeatedly in diff locations of the program..........rather than repeating the same instructions several times, they can be grouped into a subroutine that is called from diff locations. 8085 has 2 instruction set for dealing with subroutines: 1.CALL -direct the program execution to the subroutine. Generally it pushes address of next instruction of program counter onto the stack,then goes to the address of subroutine. 2.RET:- pops the address of next instruction from the stack and places it in the program counter and returns to that address to continue processing. For example, you have an often used value stored in HL. You have to call a subroutine that you know will destroy HL (with destroy I mean that HL will be changed to another value, which you perhaps don't know). Instead of first saving HL in a memory location and then loading it back after the subroutine, you can push HL before calling and directly after the calling pop it back. Of course, it's often better to use the pushes and pops inside the subroutine.


Which is an example of a PLSQL subprogram?

A PL/SQL subprogram is equivalent to a procedure or function in conventional procedural programming.


What is implied by the argument of the function?

A function (also known as procedure, subroutine, and - in object-oriented languages - as a method) lets you do repetitive calculations in a single place, without having to repeat lots of commands over and over. For example, you might have a function that calculates the square root of a number. An argument (also known as a parameter) is any variable information you pass to your function. For example, in the case of calculating a square root, the argument tells the function what number you want to calculate the square root of. For calculating powers, you might have two arguments: the base, and the exponent. In general, a function can have zero or more arguments - it really depends what it is used for.

Related Questions

What does procedural mean?

Procedure means actions that you record in order. procedure means how you did something in an exact order In computer terminology it can mean a set of programmed instructions that are performed repeatedly, such as a subroutine.


Can you assign your scope to subroutione in perl ex like this my sub fun name....definition of function...?

Yes, in Perl, you can assign a scope to a subroutine using the my keyword to declare variables within the subroutine, allowing them to be scoped locally to that subroutine. For example: sub fun { my $local_var = "I'm local"; # This variable is scoped to the subroutine print $local_var; } This keeps $local_var from being accessible outside of fun, ensuring encapsulation within the subroutine.


What are the example of procedure?

an example of a procedure that involves a inspection is


What are the examples of procedure?

an example of a procedure that involves a inspection is


What is delegate in net?

It is when you get the address of a subroutine so that you can use it...like pointers in C. For example: Private Delegate Sub Test() Sub bla() 'do nothing End sub Private the_delegate As Test = AddressOf bla 'to call the subroutine bla Sub Load() the_delegate.Invoke() End Sub


How does a function differ from a procedure?

In closed subroutine a subroutine stored outside the main routine can be connected to it by linkages at one or more locations. whereas in open subroutine is a set of computer instructions i.e. a subroutine that performs some particular program and insert them directly each and every time that particular function is required


What are stacks subroutines in 8085 microprocessor?

A subroutine is a group of instructions that will be used repeatedly in diff locations of the program..........rather than repeating the same instructions several times, they can be grouped into a subroutine that is called from diff locations. 8085 has 2 instruction set for dealing with subroutines: 1.CALL -direct the program execution to the subroutine. Generally it pushes address of next instruction of program counter onto the stack,then goes to the address of subroutine. 2.RET:- pops the address of next instruction from the stack and places it in the program counter and returns to that address to continue processing. For example, you have an often used value stored in HL. You have to call a subroutine that you know will destroy HL (with destroy I mean that HL will be changed to another value, which you perhaps don't know). Instead of first saving HL in a memory location and then loading it back after the subroutine, you can push HL before calling and directly after the calling pop it back. Of course, it's often better to use the pushes and pops inside the subroutine.


Does one say accepting of or accepting to?

it really doesnt matter because it means and is the same word so it can be said both ways.


Why did Jesus need to get baptized?

He wanted to set an example for us to do after accepting him into our hearts


What are the example of courteous expression in accepting an invitation?

I am delighted to accept your gracious invitation.


Can you give me a sentence with nonspecific?

I'm having a bit of a problem accepting your nonspecific example.


What is the difference between a surgery and a procedure?

Any type of surgery is a procedure, a procedure for example can be a EKG, or a MRI, or a endoscopy. When you go into the hospital and whatever tests they perform is a procedure.