Question: Given the following C code and assuming all necessary preprocessor statements and libraries are included. 1 . char * str 1 ; 2 . char
Given the following C code and assuming all necessary preprocessor statements and libraries are included.
char str;
char str;
char str;
str mallocsizeofchar;
str mallocsizeofchar;
ifstr NULL
strcpystr "Holidays";
ifstr NULL
strcpystr "Final Exam";
ifstr NULL
strcpystr "Programming";
str str;
str str;
str str;
freestr;
freestr;
freestr;
Check the following line numbers of where a memory management error can potentially occur.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
