Question: #include using namespace std; struct struct1 { int a; double b; }; struct struct2 { short ha; float aw; }; int myfun(double p, int q,
#include
using namespace std;
struct struct1 { int a; double b; };
struct struct2 { short ha; float aw; };
int myfun(double p, int q, float r)
{ int s; struct2 Sh; if(q > 1) s = p + 5; else s = p - (- 10) ; //MyLine return s; } int main( ) { double i; short j; float k[3]; struct1 Sha; i = 20; j = 1; myfun(i, Sha.a, k[0]);
return 0; }
b) Draw a dynamic symbol table for the given program (at My-Line). c) Draw the stack contents while execution started from the main function and the execution reached at My-Line. d) Show the corresponding code contents in memory for the main & myfun function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
