Question: The following C + + function declares local variables X and Y: void MySub ( ) { int X = 1 0 ; int Y

The following C++ function declares local variables X and Y:
void MySub()
{
int X =10;
int Y =20;
}
Which of the following shows the procedure entry code generated by MASM when the LOCAL directive is used to declare the variables X and Y?
a.
push EBP
mov EBP, ESP
sub ESP, 8
b.
mov EBP, ESP
push EBP
sub ESP, 8
c.
push EBP
mov ESP, EBP
subESP,8
d.
push EBP
mov EBP, ESP
add ESP, 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!