Question: What is the output of the given code ? int main( int argc, char** argv) { int *j = (int*)malloc(4 * sizeof(int)); //assume that malloc
What is the output of the given code ?
int main( int argc, char** argv) { int *j = (int*)malloc(4 * sizeof(int)); //assume that malloc will not return NULL *p = 15; free(p); printf("%d", *p); return EXIT_SUCCESS; }
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
