program_c.c - #include <stdio.h>#include <stdlib.h> void f(int ptr(ptr = 6 free(ptr int main(void int ptr = malloc(sizeof(int*ptr = 1 f(ptr*ptr

program_c.c - #include <stdio.h>#include <stdlib.h> void...

This preview shows page 1 out of 1 page.

#include <stdio.h> #include <stdlib.h> void f(int* ptr) { *(ptr) = 6; free(ptr); } int main(void) { int* ptr = malloc(sizeof(int));
Image of page 1

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture