Consider the function `void modify_ptr(int *ptr) { ptr = malloc(sizeof(int)); }`. If called as `modify_ptr(&x)`, what happens to `x` after the function call?
Consider the function `void modify_ptr(int *ptr) { ptr = malloc(sizeof(int)); }`. If…
Written by
in
Leave a Reply