Например:
int *point() { int *q = malloc(sizeof(int)); *q=20; return q; } int main() { int *a = point(); free(a); }
Интересно, хорошо ли это в c?