Question: Your C++ Program #include using namespace std; struct struct1 int a double b; }; struct struct2 short he; float ei; int myfun double p, int

 Your C++ Program #include using namespace std; struct struct1 int a

Your C++ Program #include using namespace std; struct struct1 int a double b; }; struct struct2 short he; float ei; 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 she: i= 20; j = 1; myfun(i, she.a, k[0]); return 0; } Problem 2. [15 Marks Write down the lines of codes in C++ (and figure) to describe - (a) Memory Leaks (b) Dangling Reference

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 Databases Questions!