I know returning pointer to local variable is not a good idea, because the stack used for that variable will be reused. As so:
#include int *