Write a function subx that takes two dword parameters A and

Write a function subx that takes two dword parameters A and B from stack, calculates A-B and returns the result through stack.

Solution

Stack st=new Stack();

subx(st.pop(),st.pop()); //function call

static void subx(int a,int b) //function definition

{

st.push(new Integer(a-b));

}

Write a function subx that takes two dword parameters A and B from stack, calculates A-B and returns the result through stack.SolutionStack st=new Stack(); subx

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site