Question: Does the following function have a memory problem? int * fun(int n) { int tmp; tmp malloc(sizeof (int) n); tmp 7; return tmp; }

Does the following function have a memory problem? int * fun(int n) { int tmp; tmp malloc(sizeof (int) n); tmp 7; return tmp; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
