@mhoye I think this is an excellent walkthrough of an all-too-common situation. Thanks for taking the time to make it.
Top-level
@mhoye I think this is an excellent walkthrough of an all-too-common situation. Thanks for taking the time to make it. 1 comment
|
void f(char *s) {
s = malloc .......
}
followed by asking why calling the function doesn't modify its parameter. How do you tell someone this without teaching them how pointers work?