Question: #include using namespace std; struct struct1 { float a; int b; }; struct struct2 { double ow; short ws; }; int myfun(int p, float q,
#include using namespace std; struct struct1 { float a; int b; }; struct struct2 { double ow; short ws; }; int myfun(int p, float q, short r) { int s; struct2 No; if(q > 20) s = p / 1; else s = p + (- 5) ; //MyLine return s; } int main( ) { int i; double j; short k[3]; struct1 Now; i = 10; j = 20; myfun(i, Now.a, k[0]); return 0; }
a) Draw a dynamic symbol table for the given program (at My-Line). b) Draw the stack contents while execution started from the main function and the execution reached at My-Line. c) 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
